async-local-executor 0.4.0

Lightweight executor for building single-threaded async runtimes.
Documentation
use async_local_executor::{block_on, spawn_local};
use std::time::Duration;
use tokio::time::sleep;

fn main() {
    let res = block_on(async {
        spawn_local(async {
            for _ in 0..10 {
                println!("Hello, again!");
                sleep(Duration::from_secs(1)).await;
            }
        });
        for _ in 0..3 {
            println!("Hello, world!");
            sleep(Duration::from_secs(1)).await;
        }
        1
    });
    assert_eq!(res, 1);
}