You can just wrap `fetchDataJob.await()` to try/ca...
# coroutines
g
You can just wrap
fetchDataJob.await()
to try/catch. If await fails (and will throw exception) your
fetchDataJob.isCompletedExceptionally
never be reached
a
make sense. thank you man 🍻
really need some tutorial on coroutines…
g
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
and thank you for this nice intro 😉