3 ms·
To spawn a sync function from an async context you use https://docs.rs/tokio/1.3.0/tokio/task/fn.spawn_blocking.html https://docs.rs/tokio/1.3.0/tokio/task/fn.s
by stuhood 6y ago
To spawn a sync function from an async context you use https://docs.rs/tokio/1.3.0/tokio/task/fn.spawn_blocking.html https://docs.rs/tokio/1.3.0/tokio/task/fn.spawn_blocking.htm....