mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Merge pull request #522 from LiYanan2004/swift-5.10
Resolve concurrency check warning on Swift 5.10
This commit is contained in:
commit
4a4b469e3f
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue