[swift-evolution] Proposal: Add a Future type to the language

Thomas Visser thomas.visser at gmail.com
Tue Dec 22 16:58:57 CST 2015

> I would much rather see the language adopt something more akin to C#’s Async-Await, where the compiler handles restructuring synchronous-looking code into something asynchronous and non-blocking.

Agreed. The ‘when let’ syntax in my ‘proposal’ is a play on C#’s await. I think it’d be great if the compiler could turn that into code that uses the Future type to achieve said asynchronous and non-blocking behavior.


More information about the swift-evolution mailing list