Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

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 <linxiangdong@bytedance.com>
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants