Tokio is an event-driven, non-blocking I/O platform for writing asynchronous applications with the Rust programming language.
Tokio aims to be:
Fast: Tokio's zero-cost abstractions give you bare-metal performance.
Productive: Tokio makes it easy to implement protocols and program asynchronously.
Reliable: Tokio leverages Rust's ownership and concurrency model to ensure thread safety.
Scalable: Tokio has a minimal footprint, and handles backpressure and cancellation naturally.
At a high level, it provides a few major components:
- A multithreaded, work-stealing based task scheduler.
- A reactor backed by the operating system's event queue (epoll, kqueue, IOCP, etc...).
- Asynchronous TCP and UDP sockets.
You can find more information in