I’ve pushed two trivial examples on coroutines wit...
# coroutines
e
I’ve pushed two trivial examples on coroutines with futures: 1. This is how you can
await
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.