https://kotlinlang.org logo
#coroutines
Title
# coroutines
g

gildor

11/20/2017, 10:43 AM
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

satejs

11/20/2017, 10:50 AM
Oh okay, will check! Thanks! I've been through the videos by Roman, but still confused slightly
3 Views