SwiftCLI
SwiftCLI copied to clipboard
Task from SwiftCLI "shadows" Swift's new Task
Hello there!
First of all, thanks a lot for your repository!
I have a question, I've been adopting new Swift patterns with async
and await
and I wanted to use the Task
from Swift (https://developer.apple.com/documentation/swift/task/), but your package's Task
shadows this.
So I needed to do something like this:
// Task comes in SwiftCLI, so importing the real Concurrency Task
_Concurrency.Task {
await whateverTask()
}
Are there any plans to change your Task
or how to circumvent this?