can I have runBlocking in kotlin-platform-common m...
# kotlin-native
r
can I have runBlocking in kotlin-platform-common module ?
o
e
runBlocking
is not supported on JS, so you cannot use it in
kotlin-platform-common
module. If you target only JVM and Native,then the workoround (for now) is to define your own
expect fun runBlocking
with actual implementations on JVM and JS that delegates to the functions that are available there