Skip to content

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

@denisenepraunig

Description

@denisenepraunig

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions