-
Notifications
You must be signed in to change notification settings - Fork 1.9k
The name for the main Android dispatcher #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I strongly prefer
|
I agree with @JakeWharton
https://developer.android.com/studio/write/annotations#thread-annotations Currently Android integration uses the |
Seconding |
* Dispatchers.Default — a default dispatcher for background asynchronous tasks (currently backed by FJP commonPool, a new dispatcher in the future). * Dispatchers.IO — a dispatcher for blocking background operations (#79). * Dispatchers.Main — a dispatcher for Android Main Thread (#533). * Dispatchers.Swing — a dispatcher for Swing Event Dispatch Thread. * Dispatchers.JavaFx — a dispatcher for JavaFx Application Thread. * Old dispatchers are deprecated, CommonPool is deprecated, too. * awaitPulse() in JavaFx and awaitFrame() in Android are top-level funs. * Introduced HandlerDispatcher, SwingDispatcher, and JavaFxDispatcher types in the corresponding UI modules for type-safety and future extensions Fixes #41
* Dispatchers.Default — a default dispatcher for background asynchronous tasks (currently backed by FJP commonPool, a new dispatcher in the future). * Dispatchers.IO — a dispatcher for blocking background operations (#79). * Dispatchers.Main — a dispatcher for Android Main Thread (#533). * Dispatchers.Swing — a dispatcher for Swing Event Dispatch Thread. * Dispatchers.JavaFx — a dispatcher for JavaFx Application Thread. * Old dispatchers are deprecated, CommonPool is deprecated, too. * awaitPulse() in JavaFx and awaitFrame() in Android are top-level funs. * Introduced HandlerDispatcher, SwingDispatcher, and JavaFxDispatcher types in the corresponding UI modules for type-safety and future extensions Fixes #41 Fixes #533
* Dispatchers.Default — a default dispatcher for background asynchronous tasks (currently backed by FJP commonPool, a new dispatcher in the future). * Dispatchers.IO — a dispatcher for blocking background operations (#79). * Dispatchers.Main — a dispatcher for Android Main Thread (#533). * Dispatchers.Swing — a dispatcher for Swing Event Dispatch Thread. * Dispatchers.JavaFx — a dispatcher for JavaFx Application Thread. * Old dispatchers are deprecated, CommonPool is deprecated, too. * awaitPulse() in JavaFx and awaitFrame() in Android are top-level funs. * Introduced HandlerDispatcher, SwingDispatcher, and JavaFxDispatcher types in the corresponding UI modules for type-safety and future extensions Fixes #41 Fixes #533
We should finalize the name for the main Android dispatcher for 1.0 release of coroutines. The current name is
UI
, but Android documentation names the corresponding concept "the main thread" (see also here #427 (comment)). Arguably, with structured concurrency (see #410) this name would not be used much often, but we still need to make sure it is clearly named.The text was updated successfully, but these errors were encountered: