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

Multithreading support #14

Closed
Spxg opened this issue Jan 19, 2025 · 0 comments · Fixed by #15
Closed

Multithreading support #14

Spxg opened this issue Jan 19, 2025 · 0 comments · Fixed by #15

Comments

@Spxg
Copy link
Owner

Spxg commented Jan 19, 2025

Now if you use sqlite in a child thread, it will panic because extern_ref is not shared in the thread. See rustwasm/wasm-bindgen#955.

The current solution is to use fragile to determine whether it is a child thread. If it is a child thread, the data will be sended to the main thread for execution (via channel maybe).

More design is needed at present.

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 a pull request may close this issue.

1 participant