vthreads 0.1.0

Compatibility alias for the vthread virtual-thread runtime
Documentation
1
2
3
4
5
6
7
8
9
10
#[test]
fn reexports_the_vthread_runtime() {
    let answer = crate::run(|scope| {
        let mut task = scope.spawn("answer", || 42)?;
        task.join()
    })
    .unwrap();

    assert_eq!(answer, 42);
}