跳到主要内容

Timer

查看 Markdown

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

API names​

TaskGo APIDex behavior
Wait for a durationTimer in WaitForFiring time
Give the Timer a stable IDWithConditionID, passed to TimerAnyCombinationOf
Combine a Timer with other conditionsAnyOf, AllOf, and AnyComboOf with ComboWaits
Check whether a Timer firedContext.HasTimerFired and Context.HasTimerFiredByIndex in ExecuteCondition results
Make a waiting Timer ready nowClient.SkipTimer, with StepExecutionID and TimerIDSkip a Timer

Example​

Example: examples/go/primitives/timer/workflow.go