SwiftCLI icon indicating copy to clipboard operation
SwiftCLI copied to clipboard

Task from SwiftCLI "shadows" Swift's new Task

Open denisenepraunig opened this issue 1 year ago • 0 comments

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?

denisenepraunig avatar Mar 16 '23 14:03 denisenepraunig