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

Method poll

tests/all/component_model/call_hook.rs:600–609  ·  view source on GitHub ↗
(mut self: Pin<&mut Self>, task: &mut task::Context<'_>)

Source from the content-addressed store, hash-verified

598 {
599 type Output = ();
600 fn poll(mut self: Pin<&mut Self>, task: &mut task::Context<'_>) -> Poll<()> {
601 for i in 0..self.times {
602 match Pin::new(&mut self.future).poll(task) {
603 Poll::Ready(v) => panic!("future should not be ready at {i}; result is {v:?}"),
604 Poll::Pending => {}
605 }
606 }
607
608 Poll::Ready(())
609 }
610 }
611
612 // helper struct to decrement a counter on drop

Callers 1

drop_call_async_futureFunction · 0.45

Calls 1

newFunction · 0.50

Tested by

no test coverage detected