Join Slack
Powered by
I want a simple future library that would carry th...
# coroutines
n
nimtiazm
04/10/2017, 9:26 AM
I want a simple future library that would carry the response from a callback and outside the block I have future.get which awaits
e
elizarov
04/10/2017, 9:29 AM
It is called Deferred:
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-deferred/index.html
elizarov
04/10/2017, 9:30 AM
Examples are given in this section of the guide:
https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#concurrent-using-async
4
Views
Open in Slack
Previous
Next