elizarov
01/11/2018, 6:48 AMrunBlocking
is there in kotlinx-coroutines-js
as you’ve noticed, but it does not really work with delay
or any other suspending invocation that actually waits for anything (like HTTP result or anything). Exposing this haft-baked runBlocking
to public would lead to too many questions “why this does not work” (you know you have a problem only in runtime — it would throw an exception). You cannot block event loop in JS. JS does not provide any means to do so.