4 ms·
Async is running many tasks on many less threads, using polling. See https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html https://rust-l
by AndrewDucker 5y ago
Async is running many tasks on many less threads, using polling.
See https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html https://rust-lang.github.io/async-book/01_getting_started/02...
- steveklabnik 5y ago(but note that this doesn't mean busy-loop polling, while that will be used in "my first executor" tutorials, production executors don't call a future until it's ready to have more progress made via an event, often from an epoll/kqueue/iocp or similar mechanism.)
- bruce343434 5y agothis sounds like a lot of overhead, though
- DenseComet 5y agoRather, Rust just makes this overhead explicit. Go, Node, etc do the same thing, but just hide what actually happens.
- Groxx 5y agoIt is, relative to not doing it. But it's quite a lot less overhead than a native thread.
- chmod775 5y agoAs opposed to what?