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

Method poll

crates/c-api/src/async.rs:72–80  ·  view source on GitHub ↗
(self: Pin<&mut Self>, _cx: &mut Context)

Source from the content-addressed store, hash-verified

70impl Future for wasmtime_async_continuation_t {
71 type Output = ();
72 fn poll(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Self::Output> {
73 let this = self.get_mut();
74 let cb = this.callback;
75 if cb(this.env) {
76 Poll::Ready(())
77 } else {
78 Poll::Pending
79 }
80 }
81}
82
83/// Internal structure to add Send/Sync to a c_void member.

Callers 2

poll_produceMethod · 0.45

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected