> On Sep 11, 2017, at 9:56 PM, Thorsten Seitz <[email protected]> wrote:
> 
> My hope would be for something along these lines:
> 
> func createDownloadTasks(for urls: [URL]) -> [async Data] {
>    return urls.map { url in async downloadResource(url) }
> }
> func await(all tasks: [async Data]) async -> [Data] {
>    return tasks.map { task in await task }
> }

So that’s basically a new type with a special syntax. What is the advantage to 
doing it that way versus just introducing a new protocol?
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to