jakeheis / SwiftCLI

A powerful framework for developing CLIs in Swift
MIT License
861 stars 72 forks source link

Task from SwiftCLI "shadows" Swift's new Task #110

Open denisenepraunig opened 1 year ago

denisenepraunig commented 1 year ago

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?