tokio
tokioはIO-boundな処理を書くためのものであって、CPU-boundな処理を並列化(マルチコアの活用?)するためのものではない。
Tokio is designed for IO-bound applications where each individual task spends most of its time waiting for IO.
だいたいNode.jsなどのevent loopと近い概念だと思えば良い
ただしlibuvと違って厳密にシングルスレッドってわけではなさそう。スレッドプール持ってそう(要出典
In short: yes, Tokio is meant to work much like the JavaScript event loop.
https://stackoverflow.com/a/67550168
Event loop that drives Tokio I/O resources.
https://docs.rs/tokio/0.1.22/tokio/reactor/index.html