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

gildor

08/30/2017, 8:27 AM
You can just wrap
fetchDataJob.await()
to try/catch. If await fails (and will throw exception) your
fetchDataJob.isCompletedExceptionally
never be reached
a

anthonyeef

08/30/2017, 8:44 AM
make sense. thank you man 🍻
really need some tutorial on coroutines…
g

gildor

08/30/2017, 8:53 AM
Read guides from kotlinx.coroutines - https://github.com/kotlin/kotlinx.coroutines They are very helpful. Roman did great job to explain and show examples. Especially check “Guide to kotlinx.coroutines by example” - https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md And after that complete guide - https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md
a

anthonyeef

08/30/2017, 9:30 AM
and thank you for this nice intro 😉