untokio 0.2.1

Automatically create tokio runtimes
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod library {
    pub async fn read() -> Result<String, std::io::Error> {
        untokio::v03::spawn(async{
            tokio03::fs::read_to_string("Cargo.toml").await
        }).await.unwrap()
    }
}

fn main() {
    println!("{}", futures::executor::block_on(library::read()).unwrap());
}