Skip to main content

wait

Function wait 

Source
pub async fn wait<P, C, T>(
    plan: &WaitPlan,
    sleep_ns: Option<u64>,
    port: &mut P,
    clock: &C,
    timer: &T,
) -> Result<WaitReport, P::Error>
where P: CompletionPort, C: Clock, T: Timer,
Expand description

Run plan over port. sleep_ns is the point’s estimate (PointTable::sleep_ns) and is used only when plan.predict is set.

§Errors

Any port error, unchanged.