Re:Why choose async/await over threads?
by politelemon on Monday March 25, 2024 @03:24AM
(#39813501)
Does that runtime run the tasks across multiple cores?
[ Parent
| on HN ]
In Rust the answer is "it depends". Since the runtime is not provided by the language you can have implementations that are a single thread, thread-per-task, a thread pool, or whatever other setup you can think of. Tokio at least offers a single threaded version and a thread pool version.