runTest vs runBlocking - Simplified
Oct 14, 2024 · 2 min read · As the name runBlocking suggests that it runs suspending code in blocking manner, which means if there is a delay inside the unlocking block, it will also block the thread. fun main(){ runBlocking{ delay(2000) println("Inside runBlocking")...
Join discussion