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")...

Markdown supported · ⌘↵ to post
No responses yet.