vthread 0.1.0

Bounded carrier-affine virtual threads for Rust
Documentation
1
2
3
4
5
6
7
8
#[test]
fn snapshot_retains_runtime_identity_after_shutdown() {
    let runtime = crate::Runtime::new().unwrap();
    let before = runtime.snapshot();
    runtime.shutdown().unwrap();
    assert_eq!(before.runtime_id(), runtime.snapshot().runtime_id());
    assert_ne!(before.runtime_id(), crate::Runtime::new().unwrap().id());
}