Swift: async/await to more easily handle asynchronous code

Originator:jan.sabbe
Number:rdar://17488525 Date Originated:2014-06-27
Status:Duplicate Resolved:2014-07-03
Product:Developer tools Product Version:
Classification:Feature (New) Reproducible:Always
 
There are a lot of asynchronous APIs available in the Cocoa. Multiple asynchronous calls in code are often hard to follow and hard to combine. I would like more language support to make it more readable:

- make it easy to start new async call after another async call finishes
- be able to start multiple async calls, and continue when they are all finished
- be able to directly see the flow in code without lots of nested callbacks or lots of delegates jumping around

The await/async in C# might be a good candidate to help in this regard. Reactive programming can also help with this.

Comments

Duplicate of 17172652

By jan.sabbe at July 3, 2014, 6:29 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!