aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Shared/NetSocket.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/Shared/NetSocket.swift')
-rw-r--r--Hotline/Shared/NetSocket.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/Shared/NetSocket.swift b/Hotline/Shared/NetSocket.swift
index a7d44ce..263487b 100644
--- a/Hotline/Shared/NetSocket.swift
+++ b/Hotline/Shared/NetSocket.swift
@@ -6,9 +6,9 @@
import Foundation
protocol NetSocketDelegate: AnyObject {
- func netsocketConnected(socket: NetSocket)
- func netsocketDisconnected(socket: NetSocket, error: Error?)
- func netsocketReceived(socket: NetSocket, bytes: [UInt8])
+ @MainActor func netsocketConnected(socket: NetSocket)
+ @MainActor func netsocketDisconnected(socket: NetSocket, error: Error?)
+ @MainActor func netsocketReceived(socket: NetSocket, bytes: [UInt8])
func netsocketSent(socket: NetSocket, count: Int)
}