vthreads 0.0.1

Compatibility alias for the vthread virtual-thread runtime
Documentation

vthreads

Compatibility alias for vthread, the bounded carrier-affine virtual-thread runtime for Rust.

New applications should depend on vthread directly. This crate re-exports the public vthread 0.0.1 API without adding another runtime or a separate API.

[dependencies]
vthreads = "0.0.1"
fn main() -> vthreads::Result<()> {
    vthreads::run(|scope| {
        let mut task = scope.spawn("answer", || 42)?;
        println!("{}", task.join()?);
        Ok(())
    })
}

Licensed under the Apache License 2.0.