Make Android UI dispatcher asynchronous by default
See original GitHub issueSee discussion in #381
We can make UI
asynchronous by default and provide a fallback (system property?) for sync behaviour and something like SyncUI
.
Asynchronous handlers are the new feature in Android and it’s unclear for us (as we’re not Android devs) whether it’s sane default which is safe to expose, so we’d like to hear community opinion on this.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Improve app performance with Kotlin coroutines
Kotlin coroutines enable you to write clean, simplified asynchronous code that keeps your app responsive while managing long-running tasks ...
Read more >Update UI async call with coroutines - android - Stack Overflow
Make sure to have the Android Coroutine library installed so that Main Dispatcher correctly recognises the Android Main Thread.
Read more >Coroutine context and dispatchers - Kotlin
All coroutine builders like launch and async accept an optional CoroutineContext parameter that can be used to explicitly specify the dispatcher ...
Read more >Kotlin Coroutines And Threading Fundamentals
Coroutine by default runs off the main thread. If you want to switch the thread Kotlin has Dispatchers to do that for you....
Read more >Deep Dive into Dispatchers for Kotlin Coroutines - Medium
Dispatchers.Default: The default CoroutineDispatcher that is used by all standard builders like launch, async, etc. if no dispatcher nor any other ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m doing it. I spent 2m making the change and am entering hour 2 writing tests.
On Mon, Sep 17, 2018 at 2:03 PM Louis CAD notifications@github.com wrote:
this article may be of interest https://medium.com/@sweers/rxandroids-new-async-api-4ab5b3ad3e93