Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

300 B
Raw Blame
fn main() {
    let pollable = wasip2::clocks::monotonic_clock::subscribe_duration(0);
    for _ in 0..20 {
        if pollable.ready() {
            return;
        }
        wasip2::clocks::monotonic_clock::subscribe_duration(0).block();
    }

    panic!("pollable should eventually be ready");
}