Comment

Comment by dana321

It doesn't take a week to learn the async basics.

add async keyword to functions add .await when calling them use tokio in your main function (easy to look up) use the async recursion crate if you need to use recursion but don't want to box everything

There are some bonuses like calling functions in parallel, but there you go.

parent dana321 6 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton