Tag: Deadlock

How I Fell in Kotlin’s RunBlocking Deadlock Trap, and How You Can Avoid It

It’s a super easy way to start new coroutines. Calling a suspending function like delay from a plain old function would normally give you an angry red compilation error. But wrap it with runBlocking, and suddenly you’re free not only to call all the suspending functions yo...