---
title: "Timer"
description: "This page lists the TypeScript SDK names for Timers."
canonical_url: "https://docs.superdurable.io/reference/typescript/timer/"
source: "docs/reference/typescript/timer.mdx"
locale: "en"
---

# Timer

This page lists the TypeScript SDK names for [Timers](https://docs.superdurable.io/concepts/primitives/timer.md).
The doc comment of each API gives its parameters, defaults, and errors. Read
them in the [TypeScript SDK API reference](https://docs.superdurable.io/reference/typescript.md#api-reference).

<a id="api-names"></a>

## API names

| Task                                  | TypeScript API                                                 | Dex behavior                                                                                      |
| ------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| Wait for a duration                   | **Timer.byDuration** in **waitFor**                            | [Firing time](https://docs.superdurable.io/reference/server/runtime-data.md#timer-firing-time)    |
| Give the Timer a stable ID            | **conditionId** of **Timer.byDuration**                        | [AnyCombinationOf](https://docs.superdurable.io/reference/typescript/waits.md#anycombinationof)   |
| Combine a Timer with other conditions | **Wait.anyOf**, **Wait.allOf**, and **Wait.anyCombinationOf**  | [Waits](https://docs.superdurable.io/reference/typescript/waits.md)                               |
| Check whether a Timer fired           | **Context.hasTimerFired** in **execute**                       | [Condition results](https://docs.superdurable.io/reference/typescript/waits.md#condition-results) |
| Make a waiting Timer ready now        | **Client.skipTimer**, with **StepExecutionId** and **TimerId** | [Skip a Timer](https://docs.superdurable.io/reference/server/runtime-client.md#skip-a-timer)      |

<a id="example"></a>

## Example

Example: [examples/typescript/src/primitives/timer/timer-flow.ts](https://github.com/superdurable/dex/tree/main/examples/typescript/src/primitives/timer/timer-flow.ts)
