---
title: "Timer"
description: "This page lists the Go SDK names for Timers."
canonical_url: "https://docs.superdurable.io/zh-Hans/reference/go/timer/"
source: "docs/reference/go/timer.mdx"
locale: "zh-Hans"
---

# Timer

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

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

## API names

| Task                                  | Go API                                                                        | Dex behavior                                                                                           |
| ------------------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Wait for a duration                   | **Timer** in **WaitFor**                                                      | [Firing time](https://docs.superdurable.io/zh-Hans/reference/server/runtime-data.md#timer-firing-time) |
| Give the Timer a stable ID            | **WithConditionID**, passed to **Timer**                                      | [AnyCombinationOf](https://docs.superdurable.io/zh-Hans/reference/go/waits.md#anycombinationof)        |
| Combine a Timer with other conditions | **AnyOf**, **AllOf**, and **AnyComboOf** with **Combo**                       | [Waits](https://docs.superdurable.io/zh-Hans/reference/go/waits.md)                                    |
| Check whether a Timer fired           | **Context.HasTimerFired** and **Context.HasTimerFiredByIndex** in **Execute** | [Condition results](https://docs.superdurable.io/zh-Hans/reference/go/waits.md#condition-results)      |
| Make a waiting Timer ready now        | **Client.SkipTimer**, with **StepExecutionID** and **TimerID**                | [Skip a Timer](https://docs.superdurable.io/zh-Hans/reference/server/runtime-client.md#skip-a-timer)   |

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

## Example

Example: [examples/go/primitives/timer/workflow.go](https://github.com/superdurable/dex/tree/main/examples/go/primitives/timer/workflow.go)
