pasts 0.14.3

Minimal and simpler alternative to the futures crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::time::Duration;

use async_std::task;

fn main() {
    pasts::Executor::default().block_on(async {
        println!("Waiting 2 seconds…");

        task::sleep(Duration::new(2, 0)).await;

        println!("Waited 2 seconds.");
    });
}