Skip to content
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

Use Dispatcher.IO instead of Dispatcher.Default by default #157

Closed
kirillzh opened this issue Jun 22, 2023 · 4 comments
Closed

Use Dispatcher.IO instead of Dispatcher.Default by default #157

kirillzh opened this issue Jun 22, 2023 · 4 comments

Comments

@kirillzh
Copy link

Coroutines KMP now have Dispatcher.IO which seems more suitable as a default dispatcher for SuspendSettings and FlowSettings.

@kirillzh kirillzh changed the title Use Dispatcher.IO instead of Dispatcher.Default by defult? Use Dispatcher.IO instead of Dispatcher.Default by default Jun 22, 2023
@vanniktech
Copy link
Contributor

Is this a new thing since 1.7? Is it also available on native / ios?

@kirillzh
Copy link
Author

Is this a new thing since 1.7? Is it also available on native / ios?

Yup, was added in 1.7 Kotlin/kotlinx.coroutines#3576

@russhwolf
Copy link
Owner

Sorry to leave this sitting, but yes this makes sense (and better to do now while the coroutine APIs are still experimental). Feel free to open a PR, or I'll get to it at some point over the next few weeks (overdue for a 1.9 update anyway)

@russhwolf russhwolf mentioned this issue Aug 20, 2023
4 tasks
@russhwolf
Copy link
Owner

This was added in version 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants