Async Rust: Few examples to get it right
Before we start, I hope you already know how to create a new rust project, add some dependencies and other basic stuff. If not, I recommend to read the Book first :)
OK, lets go!
In Rust to run code asynchronously you should start the block or functi...
blog.paramako.com4 min read
gatewaynode
Arch, Sec, Dev, Ops,
Nice little example. Might want to be a bit more explicit in the write up what the imports are as you add them in:
use tokio; use std::time::Duration; use futures;