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

Don't allow event loops to run in parallel #2907

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

daxpedda
Copy link
Member

Currently multiple event loops can be run at the same time when using spawn(), which was not the intention of #2897 and isn't documented as such.

Follow up on #2897.
Cc @grovesNL.

Copy link
Contributor

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

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

Thank you for catching and fixing this oversight! This works fine for my use case.

@daxpedda daxpedda merged commit b010689 into rust-windowing:master Jun 29, 2023
@arximboldi
Copy link

I wish this wan't merged. Why is this here? It makes things unnecessarily complicated on the user end. It should be perfectly fine to have multiple event loops running in parallel, running with multiple canvases?

@daxpedda
Copy link
Member Author

Allowing multiple event loops at the same time will collide with future changes, e.g. #3311.

Whats the motivation behind this?

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

Successfully merging this pull request may close these issues.

3 participants