async-runtime 0.3.1

A priority-aware native async runtime for the smol ecosystem with host-driven local domains
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use async_runtime::{Priority, RuntimeBuilder};
use std::num::NonZeroUsize;
use std::rc::Rc;

fn main() {
    let runtime = RuntimeBuilder::new(NonZeroUsize::new(1).unwrap())
        .build()
        .unwrap();
    let captured = Rc::new(());
    let _ = runtime.spawn(Priority::Normal, async move {
        drop(captured);
    });
}