Searched refs:CountPending (Results 1 – 2 of 2) sorted by relevance
3 use crate::async_functions::{CountPending, PollOnce};77 CountPending::new(Box::pin(f.call_async(&mut store, &[], &mut []))).await; in run_and_count_yields_or_trap()
314 let (_, pending) = CountPending::new(Box::pin(instance)).await; in iloop_with_fuel()782 pub struct CountPending<F> { struct787 impl<F> CountPending<F> { argument788 pub fn new(future: F) -> CountPending<F> { in new()789 CountPending { future, yields: 0 } in new()793 impl<F> Future for CountPending<F> implementation