Dmitri Sh
12/14/2019, 12:54 AMCoroutineDispatcher() {
override fun dispatch(context: CoroutineContext, block: Runnable) {
dispatch_async(dispatchQueue) {
block.run()
}
Used it for iOS without any issues, now when connected to macOS, getting kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one when invoking an API call. I see there was a similar issue with iOS last year? https://github.com/Kotlin/kotlinx.coroutines/issues/470