Merge pull request #1919 from ahoppen/output-redirection-sendable

Mark all closures in the `.stream` outputRedirection of TSC as `@Sendable`
This commit is contained in:
Alex Hoppen
2025-01-16 13:35:48 -08:00
committed by GitHub
3 changed files with 20 additions and 12 deletions

View File

@@ -653,8 +653,8 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
arguments: arguments,
workingDirectory: nil,
outputRedirection: .stream(
stdout: { stdoutHandler.handleDataFromPipe(Data($0)) },
stderr: { stderrHandler.handleDataFromPipe(Data($0)) }
stdout: { @Sendable bytes in stdoutHandler.handleDataFromPipe(Data(bytes)) },
stderr: { @Sendable bytes in stderrHandler.handleDataFromPipe(Data(bytes)) }
)
)
let exitStatus = result.exitStatus.exhaustivelySwitchable