Hacker News new | ask | show | jobs
by asymptotic 1660 days ago
> the best you can do is write a thread pool that spawns a Tokio LocalSet to run !Send futures

Can you go into this a bit more or provide a code reference? I'm new to writing async Rust code and am interested in this idea.

1 comments

Yeah, it's actix-web's runtime.

I brought it up to tide's maintainers and got a bunch relevant links. Feel free to click through the tide issue for more context.

- https://github.com/http-rs/tide/issues/837

- https://github.com/rust-lang/wg-async-foundations/issues/87

- https://github.com/rust-lang/wg-async-foundations/issues/128