# malcommac/Repeat

🕦 Modern Timer in Swift, Debouncer and Throttler (alternative to NSTimer) made with GCD

Repository: https://github.com/malcommac/Repeat
Canonical: https://ross.abutalabs.com/products/repeat
Language: Swift
License: MIT
License Family: permissive
Topics: nstimer, gcd, grand-central-dispatch, timer, debounce, throttler
Last push: 2021-09-08T15:54:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3115, "days_push": 1820, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1447, forks 88 (observed 2026-08-28T04:04:45.437338+00:00)

## What it is
Repeat is a lightweight Swift library providing a modern GCD-based alternative to NSTimer, with support for infinite, finite, and one-shot timers, multiple observers, and pause/resume control. It also includes a debouncer and throttler for rate-limiting function calls.

## Use cases
- replace NSTimer with a modern Swift timer
- schedule a task to run every N seconds in Swift
- debounce user input events in an iOS app
- throttle API calls to once per interval
- run a repeating timer on a background thread
- create a one-shot delayed action in Swift

## When to choose
- you need a timer without strong reference cycles or NSObject inheritance
- you want debounce/throttle utilities in Swift
- you need timers that work on background threads with multiple observers

## When to avoid
- you need a maintained library with recent updates (last release 2021)
- you're targeting platforms outside Apple's ecosystem
- you can use Combine or async/await timers in modern Swift instead

## Facets
- artifact type: library
- maturity: maintenance
- function: scheduling, concurrency, developer-tools
- domain: apple-ecosystem, developer-tools
- platform: -
- tags: timer, nstimer-alternative, gcd, debouncer, throttler, swift, automation, ios, macos

## Member repositories
- malcommac/Repeat (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.437338+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:07.380560+00:00, confidence not recorded.
  - readme: https://github.com/malcommac/Repeat (fetched 2026-08-28T04:04:45.437338+00:00, sha 16ac908236a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
