| Crates.io | mini-tokio |
| lib.rs | mini-tokio |
| version | 0.3.2 |
| created_at | 2024-03-06 18:00:36.272734+00 |
| updated_at | 2024-09-16 11:50:26.649305+00 |
| description | basic asynchronous rust executor |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1165039 |
| size | 7,851 |
Future implementation for delaysTo use mini-tokio in your Rust project:
Runtime instanceblock_on functionExamples:
use mini_tokio::Runtime;
let rt = Runtime::new();
mini_tokio.block_on(async {
// Your async code here
});
#[mini_tokio::main]
async fn main() {
// Your async code here
}
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.