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

fix async guest function panic in multi-thread tokio runtime env #210

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xdlin
Copy link

@xdlin xdlin commented Aug 9, 2024

fix async guest function panic in multi-thread tokio runtime

  • use single thread task spawner to run guest code in single thread runtime
  • use multi-thread task spawner to run host code in multi-thread runtime
  • use mpsc channel to send task's return value back to caller

refer to 'docs/multiple-thread-support.md' for more details

* use single thread task spawner to run guest code in single thread runtime
* use multi-thread task spawner to run host code in multi-thread runtime
* use mpsc channel to send task's return value back to caller

refer to 'docs/multiple-thread-support.md' for more details

Signed-off-by: linxiangdong <[email protected]>
@xdlin xdlin requested a review from a team as a code owner August 9, 2024 07:02
@xdlin xdlin changed the title add task_spawner support fix async guest function panic in multi-thread tokio runtime env Aug 9, 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