Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
- Combining asynchronous code with synchronous code that can cause blocking is never a wise choice.
When calling asynchronous code from a synchronous context,
use
futures::executor::block_on
and spawn the async …