Hey the doc says `runBlocking` blocks the current ...
# android
t
Hey the doc says
runBlocking
blocks the current thread, so why is
Hello
still printed first? Shouldn't it blocks for 3 secs and prints
Hello
at the end?
s
// launch a new coroutine and continue
j
runBlocking blocks the current thread from continuing past the runBlocking block.
1
🙌 1
Within the block it uses some sort of event loop
t
oh wait i'm dumb. The
println("Hello")
is still inside of the
runBlocking
. I thought it was outsside.
😂 2