in this case `async()` is function (coroutine buil...
# coroutines
g
in this case
async()
is function (coroutine builder) and
await
is a function in interface Deferred (returned from async()) and both of them are part of kotlinx.coroutines library, not a part of language or stdlibrary. You can write own implementations that doesn’t coupled with particular Promise/Feature implementation like in languages where async/await is part of the language
@satejs You can check docs and source code: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/async.html kotlinx.coroutines itself is just library
also, you can use another coroutine builders, not only
async
s
Oh okay, will check! Thanks! I've been through the videos by Roman, but still confused slightly