We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b63a7 commit ef06e1eCopy full SHA for ef06e1e
1 file changed
Coder-Desktop/VPNLib/TunnelDaemon.swift
@@ -15,14 +15,17 @@ public actor TunnelDaemon {
15
}
16
17
private var monitorTask: Task<Void, Never>?
18
- private var onFail: (TunnelDaemonError) -> Void
+ private var onFail: @Sendable (TunnelDaemonError) -> Void
19
20
public var writeHandle: FileHandle { tunnelReadPipe.fileHandleForWriting }
21
public var readHandle: FileHandle { tunnelWritePipe.fileHandleForReading }
22
23
var pid: pid_t?
24
25
- public init(binaryPath: URL, onFail: @escaping (TunnelDaemonError) -> Void) async throws(TunnelDaemonError) {
+ public init(
26
+ binaryPath: URL,
27
+ onFail: @Sendable @escaping (TunnelDaemonError) -> Void
28
+ ) async throws(TunnelDaemonError) {
29
self.onFail = onFail
30
tunnelReadPipe = Pipe()
31
tunnelWritePipe = Pipe()
0 commit comments