vthread 0.0.1

Bounded carrier-affine virtual threads for Rust
Documentation
1
2
3
4
5
6
7
8
use super::*;
#[test]
fn completed_shutdown_remains_idempotent() {
    let runtime = crate::Runtime::new().unwrap();
    let first: ShutdownReport = runtime.shutdown().unwrap();
    let second = runtime.shutdown_until(std::time::Instant::now()).unwrap();
    assert!(matches!(second, ShutdownOutcome::Complete(report) if report == first));
}