MCPcopy Create free account
hub / github.com/bytecodealliance/wstd / wait_for

Method wait_for

src/runtime/reactor.rs:42–53  ·  view source on GitHub ↗

Create a Future that waits for the Pollable's readiness.

(&self)

Source from the content-addressed store, hash-verified

40 }
41 /// Create a Future that waits for the Pollable's readiness.
42 pub fn wait_for(&self) -> WaitFor {
43 use std::sync::atomic::{AtomicU64, Ordering};
44 static COUNTER: AtomicU64 = AtomicU64::new(0);
45 let unique = COUNTER.fetch_add(1, Ordering::Relaxed);
46 WaitFor {
47 waitee: Waitee {
48 pollable: self.clone(),
49 unique,
50 },
51 needs_deregistration: false,
52 }
53 }
54}
55
56#[derive(Debug, PartialEq, Eq, Hash, Clone)]

Callers 13

sendMethod · 0.80
sendMethod · 0.80
poll_frameMethod · 0.80
poll_readyMethod · 0.80
readyMethod · 0.80
connect_addrMethod · 0.80
bindMethod · 0.80
nextMethod · 0.80
subscribe_no_durationFunction · 0.80
subscribe_some_durationFunction · 0.80

Calls

no outgoing calls