vthread 0.1.0

Bounded carrier-affine virtual threads for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[test]
fn panic_payload_destruction_is_inside_the_capture_boundary() {
    struct Payload;
    impl Drop for Payload {
        fn drop(&mut self) {
            panic!("payload destructor");
        }
    }
    let captured = std::panic::catch_unwind(|| super::PanicReport::capture(Box::new(Payload)));
    assert!(captured.is_ok(), "payload cleanup escaped panic capture");
}