MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / poll

Method poll

crates/fuzzing/src/lib.rs:75–83  ·  view source on GitHub ↗
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)

Source from the content-addressed store, hash-verified

73 type Output = ();
74
75 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()> {
76 if self.0 == 0 {
77 Poll::Ready(())
78 } else {
79 self.0 -= 1;
80 cx.waker().wake_by_ref();
81 Poll::Pending
82 }
83 }
84}
85
86#[cfg(test)]

Callers 1

block_onFunction · 0.45

Calls 1

wakerMethod · 0.80

Tested by

no test coverage detected