Default dispatcher and UI dispatcher support for iOS
See original GitHub issueHi, I am using 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.24.0'
with outputKinds = [FRAMEWORK]
to generate framework targeting ios_x64
I wrote some uint tests for the code which contains launch
call and ran tests with Gradle without any problem, but I got this error when ran the code in iOS emulator.
There is no event loop. Use runBlocking { … } to start one
Do we now have default dispatcher and UI dispatcher support for iOS?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Dispatching Intents to Handlers - Apple Developer
Overview. When a user makes a request of your app as an intent, SiriKit needs a handler that conforms to the corresponding intent...
Read more >Kotlin Multiplatform. Practical multithreading (part 2) - Medium
Dispatchers.Default is a default dispatcher for Coroutines mechanism: CoroutineDispatcher uses specified fabric MainDispatcherLoader under the ...
Read more >Dispatchers.Main - Kotlin
A coroutine dispatcher that is confined to the Main thread operating with UI objects. Usually such dispatchers are single-threaded.
Read more >Difference between usage of Dispatcher IO and Default
The difference is that Dispatchers.Default is limited to the number of CPU cores (with a minimum of 2) so only N (where N...
Read more >Kotlin Multiplatform. Practical multithreading (part 2)
Tagged with kotlin, mobile, ios, android. ... Default is a default dispatcher for Coroutines mechanism:.
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
@kamerok , below is the implementation I’m currently using. Updated for coroutines 1.0 and implemented the delay parts, so you don’t have to remove
delay()
calls.Fixed with 1.6.0-RC and new memory model: when it’s enabled,
global_queue
is used forDispatchers.Default
and main queue forDispatchers.Main