# Cysharp/UniTask

Provides an efficient allocation free async/await integration for Unity.

Repository: https://github.com/Cysharp/UniTask
Canonical: https://ross.abutalabs.com/products/unitask
Language: C#
License: MIT
License Family: permissive
Topics: csharp, unity, coroutine, task, thread
Last push: 2026-07-08T03:24:36+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 84, longevity 100
- inputs: {"age_days": 2663, "days_push": 56, "days_rel": 106, "gap_med": 1, "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 11150, forks 1013 (observed 2026-08-28T04:10:46.242841+00:00)

## What it is
UniTask is a C# library for Unity that provides an efficient, allocation-free async/await integration. It makes Unity AsyncOperations, coroutines, and events awaitable via a struct-based UniTask type running on Unity's PlayerLoop without threads.

## Use cases
- replace coroutines with async/await in Unity
- await Unity AsyncOperations like scene loads
- delay or yield frames without allocations
- await uGUI and MonoBehaviour events
- write async LINQ pipelines in Unity games
- track and debug async task leaks in Unity

## When to choose
- building Unity games that need high-performance async code
- replacing coroutine-based logic with async/await
- targeting WebGL or other no-thread platforms in Unity
- you need zero-allocation async operations in game loops

## When to avoid
- non-Unity .NET projects (use standard Task/ValueTask)
- simple projects where coroutines suffice
- codebases already standardized on Unity's built-in Awaitable (Unity 6+)

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: developer-tools, cross-platform
- platform: game-engine, cross-platform
- tags: unity, async-await, zero-allocation, coroutine, csharp, playerloop, game-development

## Member repositories
- Cysharp/UniTask (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:46.242841+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-29T17:16:44.940563+00:00, confidence not recorded.
  - readme: https://github.com/Cysharp/UniTask (fetched 2026-08-28T04:10:46.242841+00:00, sha f172a2a3438c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
