Skip to content

Commit

Permalink
Merge pull request #522 from LiYanan2004/swift-5.10
Browse files Browse the repository at this point in the history
Resolve concurrency check warning on Swift 5.10
  • Loading branch information
MattKiazyk committed May 25, 2024
2 parents 7628f85 + 9a5e127 commit 4a4b469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Xcodes/Backend/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ public struct Shell {
return AsyncThrowingStream<Progress, Error> { continuation in

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

Expand Down

0 comments on commit 4a4b469

Please sign in to comment.