跳到主要内容

Timer

查看 Markdown

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

API names​

TaskTypeScript APIDex behavior
Wait for a durationTimer.byDuration in waitForFiring time
Give the Timer a stable IDconditionId of Timer.byDurationAnyCombinationOf
Combine a Timer with other conditionsWait.anyOf, Wait.allOf, and Wait.anyCombinationOfWaits
Check whether a Timer firedContext.hasTimerFired in executeCondition results
Make a waiting Timer ready nowClient.skipTimer, with StepExecutionId and TimerIdSkip a Timer

Example​

Example: examples/typescript/src/primitives/timer/timer-flow.ts