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

Remove 2nd Tokio Runtime in Auto Splitting Runtime #854

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Nov 16, 2024

Wasmtime's WASI implementation nowadays internally has its own Tokio runtime. You can only ever run a single Tokio runtime on a thread at the same time. Wasmtime provides async support, so this likely would have also solved the issue. However, this probably would've made it harder to use the runtime in other situations. So instead we just remove our own runtime, which was not really necessary anyway.

Wasmtime's WASI implementation nowadays internally has its own Tokio
runtime. You can only ever run a single Tokio runtime on a thread at the
same time. Wasmtime provides async support, so this likely would have
also solved the issue. However, this probably would've made it harder to
use the runtime in other situations. So instead we just remove our own
runtime, which was not really necessary anyway.
@CryZe CryZe added bug There is a bug. enhancement An improvement for livesplit-core. priority: high This is a high priority issue. auto splitting This is about the auto splitting implementation. labels Nov 16, 2024
@CryZe CryZe added this to the v0.14 milestone Nov 16, 2024
@CryZe CryZe enabled auto-merge (squash) November 16, 2024 12:05
@CryZe CryZe merged commit 47a2b51 into LiveSplit:master Nov 16, 2024
70 checks passed
@CryZe CryZe deleted the only-one-tokio branch November 16, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto splitting This is about the auto splitting implementation. bug There is a bug. enhancement An improvement for livesplit-core. priority: high This is a high priority issue.
Projects
Development

Successfully merging this pull request may close these issues.

1 participant