From de1406c5c33d64fe7ce2dce122cf01a91e8e006d Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Thu, 19 Sep 2024 18:59:16 +0300 Subject: [PATCH] Apply @Sendable annotation to address compiler warning --- Sources/Basics/Concurrency/AsyncProcess.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Basics/Concurrency/AsyncProcess.swift b/Sources/Basics/Concurrency/AsyncProcess.swift index a2b70c10269..154cab33ac6 100644 --- a/Sources/Basics/Concurrency/AsyncProcess.swift +++ b/Sources/Basics/Concurrency/AsyncProcess.swift @@ -809,7 +809,7 @@ package final class AsyncProcess { } /// Executes the process I/O state machine, calling completion block when finished. - private func waitUntilExit(_ completion: @escaping (Result) -> Void) { + private func waitUntilExit(_ completion: @escaping @Sendable (Result) -> Void) { self.stateLock.lock() switch self.state { case .idle: @@ -1086,7 +1086,7 @@ extension AsyncProcess { environment: Environment = .current, loggingHandler: LoggingHandler? = .none, queue: DispatchQueue? = nil, - completion: @escaping (Result) -> Void + completion: @escaping @Sendable (Result) -> Void ) { let completionQueue = queue ?? Self.sharedCompletionQueue