MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / poll

Method poll

crates/runtime/src/sim/executor/mod.rs:570–578  ·  view source on GitHub ↗
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)

Source from the content-addressed store, hash-verified

568 type Output = ();
569
570 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
571 if self.yielded {
572 Poll::Ready(())
573 } else {
574 self.yielded = true;
575 cx.waker().wake_by_ref();
576 Poll::Pending
577 }
578 }
579}
580
581/// Shared runnable queue used by the simulation executor.

Callers 1

block_onMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected