Out of curiosity, why isn't `runBlocking` in the s...
# coroutines
d
Out of curiosity, why isn't
runBlocking
in the standard library? Since you can suspend without kotlinx.coroutines, shouldn't you be able to at least block without it?
s
You cant block in javascript
d
Oh.
runBlocking
doesn't work in JavaScript? Didn't know that.
s
Responses to say an http request must be handled by the event loop on the main thread but since that is blocked by
runBlocking
how would that work out ?
1
u
makes sense. thanks @spand
👍 1
g
Yes, you cannot implement runBlocking on JS to work the same way as on JVM