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

chore: enable multiple threads #753

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

appflowy
Copy link
Contributor

Create a custom Tokio runtime for running group collaboration. Different groups may spawn on different threads, enabling concurrency.

In Actix-Web, if a single-threaded Tokio runtime is used (e.g., via the current_thread runtime), all tokio::spawn calls will run on that single thread, meaning tasks are not distributed across multiple threads by default. However, using a multi-threaded Tokio runtime (the default configuration for Tokio) would allow tokio::spawn calls to run on multiple threads.

@appflowy appflowy merged commit cbb9adc into main Aug 27, 2024
9 checks passed
@appflowy appflowy deleted the enable_multi_thread_collab_rt2 branch August 27, 2024 03:15
uxodb pushed a commit to uxodb/AppFlowy-Cloud that referenced this pull request Nov 13, 2024
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