Search results for '"coroutine gotchas"'

2

Coroutine Gotchas - Bridging the Gap between Coroutine and Non-Coroutine Worlds

Coroutines are a wonderful way of writing asynchronous, non-blocking code in Kotlin. Think of them as lightweight threads, because that’s exactly what they are. Lightweight threads aim to reduce context switching, a relatively expensive operation. Moreover, you can easily suspend and cancel them anytime. Sounds great, right?

Coroutine Gotchas - Bridging the Gap between Coroutine and Non-Coroutine Worlds