---
title: "countdown(id:)"
framework: alarmkit
role: symbol
role_heading: Instance Method
path: "alarmkit/alarmmanager/countdown(id:)"
---

# countdown(id:)

Performs a countdown for the alarm with the specified ID if it’s currently alerting.

## Declaration

```swift
func countdown(id: Alarm.ID) throws
```

## Parameters

- `id`: The identifier of the alarm to perform a countdown for.

## Discussion

Discussion The function throws otherwise. This is identical to the repeat function of a timer, or the snooze function of an alarm.

## See Also

### Changing an alarm state

- [cancel(id:)](alarmkit/alarmmanager/cancel(id:).md)
- [pause(id:)](alarmkit/alarmmanager/pause(id:).md)
- [resume(id:)](alarmkit/alarmmanager/resume(id:).md)
- [stop(id:)](alarmkit/alarmmanager/stop(id:).md)
