2 ms·
> Wait, async is multithreaded by default in Rust? No, whether or not async is multithreaded depends on whether or not your executor is multithreaded. Rust doe
by kibwen 3y ago
> Wait, async is multithreaded by default in Rust?
No, whether or not async is multithreaded depends on whether or not your executor is multithreaded. Rust doesn't ship an executor by default, you need to bring your own. Tokio, the most popular general-purpose executor, is multithreaded by default, and can be configured to be single-threaded.