ste 0.1.0-alpha.11

A single-threaded executor with some tricks up its sleeve.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() -> anyhow::Result<()> {
    for _ in 0..10 {
        let thread = ste::spawn();
        let mut result = 0;

        for n in 0..100 {
            result += thread.submit(move || n);
        }

        assert_eq!(result, 4950);
        thread.join();
    }

    Ok(())
}