elizarov
03/04/2017, 7:09 AMasync
and await
work in somewhat similar way), However, with Kotlin coroutines library you always explicitly specify the context that your coroutines work in (there is no implicit/default context like in TPL). When you use some blocking APIs (like File
) then it does block a thread that it is running on, but it does not block the thread that is using await
. Please, join #C1CFAFJSK for further discussion.