mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Make Sendable.
This commit is contained in:
1 parent
315ed56b6b
commit
dd691c4a91
1 file changed
+5
-3
@@ -10,12 +10,14 @@ import AppKit
|
||||
import Account
|
||||
import os.log
|
||||
|
||||
struct ErrorHandler {
|
||||
nonisolated struct ErrorHandler: Sendable {
|
||||
|
||||
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ErrorHandler")
|
||||
|
||||
public static func present(_ error: Error) {
|
||||
NSApplication.shared.presentError(error)
|
||||
@Sendable public static func present(_ error: Error) {
|
||||
Task { @MainActor in
|
||||
NSApplication.shared.presentError(error)
|
||||
}
|
||||
}
|
||||
|
||||
public static func log(_ error: Error) {
|
||||
|
||||
Reference in new issue
Block a user