Skip to content

Commit 4a4b469

Browse files
authored
Merge pull request #522 from LiYanan2004/swift-5.10
Resolve concurrency check warning on Swift 5.10
2 parents 7628f85 + 9a5e127 commit 4a4b469

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Xcodes/Backend/Environment.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ public struct Shell {
116116
return AsyncThrowingStream<Progress, Error> { continuation in
117117

118118
Task {
119-
var progress = Progress()
119+
// Assume progress will not have data races, so we manually opt-out isolation checks.
120+
nonisolated(unsafe) var progress = Progress()
120121
progress.kind = .file
121122
progress.fileOperationKind = .downloading
122123

0 commit comments

Comments
 (0)