Skip to main content

Timer

View as Markdown

This page lists the Rust SDK names for Timers. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Rust SDK API reference.

API names​

TaskRust APIDex behavior
Wait for a durationTimer::by_duration in wait_forFiring time
Give the Timer a stable IDCondition::with_id on the Timer conditionAnyCombinationOf
Combine a Timer with other conditionsWait::any_of, Wait::all_of, and Wait::any_combination_ofWaits
Check whether a Timer firedContext::has_timer_fired and Context::has_any_timer_fired in executeCondition results
Make a waiting Timer ready nowClient::skip_timer, with StepExecutionId and TimerIdSkip a Timer

Example​

Example: examples/rust/src/primitives/timer/flow.rs