Open OliverO2 opened 2 months ago
Workaround:
import kotlinx.coroutines.delay
import kotlin.time.Duration.Companion.seconds
suspend fun main() {
withContext(Dispatchers.Default) { }
println("main: before delay")
delay(1.seconds)
println("main: after delay")
}
Versions:
Running the following code in
commonMain
:This works on Wasm/JS,
but silently exits on Wasm/WASI: