Merge pull request #522 from LiYanan2004/swift-5.10

Resolve concurrency check warning on Swift 5.10
This commit is contained in:
Matt Kiazyk 2024-05-24 20:39:28 -05:00 committed by GitHub
commit 4a4b469e3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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