mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Sendable Conformance for Process
Xcode was warning about "Stored property 'process' of 'Sendable'-conforming struct 'ProcessExecutionError' has non-sendable type 'Process'" The solution has been inspired by [this](https://www.avanderlee.com/swift/sendable-protocol-closures/#:~:text=Stored%20property%20%E2%80%98author%E2%80%99%20of%20%E2%80%98Sendable%E2%80%99%2Dconforming%20struct%20%E2%80%98ArticleSavingError%E2%80%99%20has%20non%2Dsendable%20type%20%E2%80%98NonFinalAuthor) article.
This commit is contained in:
parent
0bc8edf75e
commit
02b0217c0e
1 changed files with 4 additions and 0 deletions
|
|
@ -73,3 +73,7 @@ struct ProcessExecutionError: Error {
|
|||
let standardOutput: String
|
||||
let standardError: String
|
||||
}
|
||||
|
||||
extension Process: @unchecked Sendable {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue