abreslav
12/18/2015, 4:02 PMasync/await
and Kotlin.
On the bright side: we are going to support async/await
in one of the future versions of the language.
On the difficult side: to be able to do it later, we'd better reserve the syntax now, and this means that async
becomes a keyword.
In particular, libraries (including Kovenant and Anko) that currently have their own functions names async
will not be able to use them as async { … }
, which is unfortunate.
A workaround for these libraries would be saying async() { … }
instead.