elizarov
01/25/2017, 2:39 PMawait
on a completable future from somewhere: https://github.com/elizarov/kotlinx.coroutines/blob/wip/kotlinx-coroutines-jdk8/src/test/kotlin/examples/simple-example-1.kt
2. This is how you can use future
builder (aka async
in C#/JS) to create a future using non-blocking code: https://github.com/elizarov/kotlinx.coroutines/blob/wip/kotlinx-coroutines-jdk8/src/test/kotlin/examples/simple-example-2.kt
They don’t do anything usefull, they just show that it all works.