Hello, World! I'm in a Multiplatform library and ...
# coroutines
b
Hello, World! I'm in a Multiplatform library and I'd like to use
runBlocking
... is it possible?
d
Are you also using JS?
b
currently it's one of my target yes, but to be honest I could remove it because I'm not really sure it's useful
d
runBlocking
is not available for JS. Since it is single-threaded or something like that.
Unless you need this for unit tests then there's a known work around.
b
what's the workaround?
d
b
thanks a lot!