Skip to main content

Resettable timer

Extend or reset a wait window based on fresh activity.

Problem and approach

Here we demonstrate a basic and common design pattern for building Flows with Dex:

  1. Resettable Timer Flow: This Flow starts a timer with predefined duration value that can be reset before firing.

Code examples

Full runnable samples live under examples/{go,java,python,typescript} (HTTP prefix /design-pattern/... where applicable).

# See examples/python/dex_examples/patterns/workflow/resettabletimer/