diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 8a9d9f3..40b4dc7 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -599,7 +599,7 @@ final class RemoteStore: ObservableObject { let toolID = UUID().uuidString let task = Task { [weak self] in guard let self else { return } - func pause(_ ms: Int) async -> Bool { + @MainActor func pause(_ ms: Int) async -> Bool { try? await Task.sleep(for: .milliseconds(ms)) if Task.isCancelled { return false } return self.demoMode