跳到主要内容

Timer

查看 Markdown

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

API names​

TaskPython APIDex behavior
Wait for a durationTimer.by_duration in wait_forFiring time
Give the Timer a stable IDcondition_id of Timer.by_durationAnyCombinationOf
Combine a Timer with other conditionsWait.any_of, Wait.all_of, and Wait.any_combination_ofWaits
Check whether a Timer firedContext.has_timer_fired in executeCondition results
Make a waiting Timer ready nowClient.skip_timer, with StepExecutionId and TimerIdSkip a Timer

Example​

Example: examples/python/dex_examples/primitives/timer/timer_flow.py