Skip to content

Fix OpenGroup blocking default dispatcher #873

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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

SessionHero01
Copy link
Collaborator

There are a few places left that still doing Future.get() which blocks the default dispatcher. The default dispatcher has finite number of threads available so if they are blocked, other things can get blocked too.

This problem is very apparent in accounts with lots of communities. By changing the blocking behavior into .await() we can leverage the use of suspend function instead. Most of the changes already come from a coroutine context.

@SessionHero01 SessionHero01 merged commit 026f6ef into release/1.21.0 Jan 15, 2025
1 check passed
@SessionHero01 SessionHero01 deleted the fix-community-blocking-dispatcher branch January 15, 2025 02:49
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.

2 participants