Stream: general

Topic: Async functions and multithreading


view this post on Zulip Vibhav Pant (Mar 31 2021 at 10:29):

Is there a way I can call an async Wasm function from an asynchronous HTTP handler? Rust complains about Store not implementing Send and Sync, but is there a way to circumvent this?

view this post on Zulip Pat Hickey (Apr 01 2021 at 01:35):

for now you need to use something like https://docs.rs/tokio/1.4.0/tokio/task/struct.LocalSet.html


Last updated: Nov 22 2024 at 16:03 UTC