Kotlin Coroutines : Suspending vs Blocking
Coroutines are a concurrency design pattern used in programming to write asynchronous code in a more sequential and readable manner. Both suspending and blocking play a role in managing the flow of asynchronous code.
Suspending
In coroutine terminolo...
kalume.hashnode.dev4 min read
Ondřej Schrek
It is the good article. I would emphasize that the last point is crucial... I would also write that runBlocking inside the coroutine is a big hidden danger, because its dangerous behaviour is not so obvious and it can cause a lot of problems which are not occurring immediately e.g.: in local testing but in production loads could show up as deadlock or freezing program