Get the latest tech news
A Visual Journey Through Async Rust
Magical Rust patterns laid out and simplified. Contribute to alexpusch/rust-magic-patterns development by creating an account on GitHub.
First, let's add the sine value calculation times to our generated samples and update the plotting code to show this duration in the graphics. If the async runtime ran futures in parallel, we would have seen all the blue blocks line up one below the other, more or less in the same time frames. Think about HTTP servers that handle lots of multiple requests, parse incoming and outgoing JSON strings, send and receive DB query results, etc.
Or read this on Hacker News