# apple/swift-async-algorithms

Async Algorithms for Swift

Repository: https://github.com/apple/swift-async-algorithms
Canonical: https://ross.abutalabs.com/products/swift-async-algorithms
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: swift
Last push: 2026-08-09T12:23:19+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 78, longevity 100
- inputs: {"age_days": 1696, "days_push": 24, "days_rel": 65, "gap_med": 72, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3704, forks 223 (observed 2026-08-28T04:08:15.031340+00:00)

## What it is
An open-source Swift package providing asynchronous sequence algorithms built on async/await and AsyncSequence. It includes time-based operations like debounce and throttle, and combining operations like merge, combineLatest, and zip.

## Use cases
- merge multiple async streams into one
- debounce rapid async events in Swift
- combine latest values from several async sequences
- zip two asynchronous sequences together
- throttle values over time in an async pipeline
- concatenate async sequences with chain

## When to choose
- you use Swift async/await and need well-tested async sequence combinators
- you need time-based algorithms like debounce or throttle for async streams
- you want cross-platform, Apple-maintained concurrency utilities

## When to avoid
- you work outside the Swift ecosystem
- you need Combine or RxSwift-style reactive APIs with subjects and schedulers
- your project targets Swift versions before 5.5 without async/await support

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, cross-platform
- platform: cross-platform
- tags: async-await, asyncsequence, reactive, time-based-algorithms, apple, swift

## Member repositories
- apple/swift-async-algorithms (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.031340+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-29T18:30:59.827094+00:00, confidence not recorded.
  - readme: https://github.com/apple/swift-async-algorithms (fetched 2026-08-28T04:08:15.031340+00:00, sha 42c8c49661c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
