Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
denisenepraunig opened this issue Mar 16, 2023 · 0 comments
Open

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

denisenepraunig opened this issue Mar 16, 2023 · 0 comments

Comments

@denisenepraunig
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant