Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Concurrency

Start a Tokio runtime with the

Turn async fn main into a program with the tokio::main attribute, which builds a multi-thread Tokio 1.40 runtime and runs your body on it with block_on.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.