Async or native thread? | Learn Rust part 64
Smart Contract Programmer · 7:39
In Rust, use native OS threads when CPU-heavy work is slowing your program down and you only need a few threads. Use async programming (Tokio tasks) when the program spends most of its time waiting on I/O or when you...