Does IOS coroutines `delay(x)` not working? trying...
# kotlin-native
i
Does IOS coroutines
delay(x)
not working? trying to create loop thread with
Copy code
runBlocking{
            GlobalScope.launch {
                  while(flag){
                  //some stuff
                 delay(1000)
                  }
             }
}
and it drops with error
kotlin.IllegalStateException: Cannot schedule task because event loop was shut down
on delay, we are researching atm send help))
so not only coroutines not working, also there can be no multithreading at all, everything is frozen and if it is not, using data from another thread creates a crash. very spicy
l
multi-threaded coroutines are not yet supported on Kotlin/Native. Search for it in issues on kotlinx.coroutines GitHub repo