A even smaller tokio
Features
- Basic task spawning and execution
- Asynchronous runtime with a simple event loop
- Custom
Futureimplementation for delays - Thread-safe task scheduling using channels
Usage
To use mini-tokio in your Rust project:
- Create a new
MiniTokioinstance - Spawn tasks using the
spawnfunction - Run the runtime using the
runmethod
Example:
let mini_tokio = new;
mini_tokio.spawn;
mini_tokio.run;
Note
This is a minimal implementation for educational purposes and is not intended for production use. For real-world applications, consider using the full Tokio runtime or other production-ready async runtimes.