Fix a few concurrency warnings.

This commit is contained in:
Brent Simmons
2024-05-03 11:57:20 -07:00
parent 6776862322
commit 81cede769a
5 changed files with 13 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ public protocol SendToCommand {
/// - object: The object to test.
/// - selectedText: The currently selected text.
/// - Returns: `true` if the object can be sent, `false` otherwise.
func canSendObject(_ object: Any?, selectedText: String?) -> Bool
@MainActor func canSendObject(_ object: Any?, selectedText: String?) -> Bool
/// Send an object to the target application.
///