Crates.io | tinyio |
lib.rs | tinyio |
version | 0.1.0 |
source | src |
created_at | 2024-04-26 05:54:26.002616 |
updated_at | 2024-04-26 05:54:26.002616 |
description | A tiny Rust concurrency runtime library. |
homepage | |
repository | https://github.com/levinion/tinyio |
max_upload_size | |
id | 1221083 |
size | 25,535 |
A tiny Rust concurrency runtime library.
#[tinyio::main]
async fn main() {
for i in 0..10 {
tinyio::spawn(async move {
println!("{}", i);
})
}
}
#[tinyio::main]
async fn main() {
let mut res =
isahc::get_async("https://raw.githubusercontent.com/levinion/tinyio/main/README.md")
.await
.unwrap();
println!("{}", res.text().await.unwrap());
}