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

Limited parallelism improvements #4098

Merged
merged 6 commits into from
Apr 26, 2024
Merged

Conversation

qwwdfsad
Copy link
Collaborator

While I figure out stabilization details, these are pretty straightforward changes that can be merged into minor releases

@@ -19,7 +19,7 @@ import kotlin.jvm.*
* associated native resources (threads or native workers). It should not be allocated in place,
* should be closed at the end of its lifecycle, and has non-trivial memory and CPU footprint.
* If you do not need a separate thread pool, but only have to limit effective parallelism of the dispatcher,
* it is recommended to use [CoroutineDispatcher.limitedParallelism] instead.
* it is recommended to use `Dispatchers.IO.limitedParallelism(1)` or `Dispatchers.Default.limitedParallelism(1)` instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An interactive link to limitedParallelism could help, I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, please check

qwwdfsad and others added 3 commits April 25, 2024 18:07
Co-authored-by: Dmitry Khalanskiy <52952525+dkhalanskyjb@users.noreply.github.com>
@qwwdfsad qwwdfsad merged commit a9bb5d3 into develop Apr 26, 2024
1 check passed
@qwwdfsad qwwdfsad deleted the limited-parallelism-improvements branch April 26, 2024 10:24
Corje pushed a commit that referenced this pull request May 10, 2024
* Provide toString implementation for limitedParallelism
* Improve documentation of limitedParallelism

Co-authored-by: Dmitry Khalanskiy <52952525+dkhalanskyjb@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants