Timer
View as MarkdownThis page lists the Java SDK names for Timers. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Java SDK API reference.
API names
| Task | Java API | Dex behavior |
|---|---|---|
| Wait for a duration | Timer.byDuration in waitFor | Firing time |
| Give the Timer a stable ID | conditionId of Timer.byDuration | AnyCombinationOf |
| Combine a Timer with other conditions | Wait.anyOf, Wait.allOf, and Wait.anyCombinationOf | Waits |
| Check whether a Timer fired | Context.hasTimerFired in execute | Condition results |
| Make a waiting Timer ready now | Client.skipTimer, with StepExecutionId and TimerId | Skip a Timer |
Example
Example: examples/java/src/main/java/io/superdurable/dex/primitives/timer/TimerFlow.java