From 3a9d18e66797b8904ab12c833c79dbebf6860e9e Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Tue, 25 Nov 2025 20:44:09 -0800 Subject: [PATCH] Try async outer --- .../Packages/Sources/SecretAgentKit/SocketController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift index 5197810..fa62851 100644 --- a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift @@ -116,14 +116,14 @@ extension SocketController { private extension FileHandle { /// Ensures waitForDataInBackgroundAndNotify will be called on the main actor. - @MainActor func waitForDataInBackgroundAndNotifyOnMainActor() { + @MainActor func waitForDataInBackgroundAndNotifyOnMainActor() async { waitForDataInBackgroundAndNotify() } /// Ensures acceptConnectionInBackgroundAndNotify will be called on the main actor. /// - Parameter modes: the runloop modes to use. - @MainActor func acceptConnectionInBackgroundAndNotifyOnMainActor(forModes modes: [RunLoop.Mode]? = [RunLoop.Mode.default]) { + @MainActor func acceptConnectionInBackgroundAndNotifyOnMainActor(forModes modes: [RunLoop.Mode]? = [RunLoop.Mode.default]) async { acceptConnectionInBackgroundAndNotify(forModes: modes) }