Hacker News new | ask | show | jobs
by baby 2538 days ago
> watch out certain libraries using `tokio::spawn` , which will cause panics

care to expand on that?

1 comments

tokio::spawn needs to be run from the context of tokio's executor. If you use some other executor, such as juliex, it will panic.

This is hopefully solved by the Runtime crate and the crates using it will use a more generic version.