# async

> Run IO operations asynchronously and wait for their results

Source: https://talira.ai/catalog/async-8pbk9q5y
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / concurrency](https://talira.ai/categories/libraries/concurrency), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Simon Marlow](https://talira.ai/orgs/simon-marlow.md)

async is a Haskell library that gives a higher-level interface over threads: an Async is a concurrent thread that will eventually deliver a value, and the library has ways to create these computations, wait for their results and cancel them. It is safer than raw threads because an exception in a thread can't be silently ignored by the caller, and withAsync builds a tree of threads that are killed automatically when their parent dies. It also has combinators such as concurrently, race and mapConcurrently, and since 2.2.6 bounded stream processing.

## Links

- GitHub: https://github.com/simonmar/async

## Problems it solves

- run several IO actions at the same time in Haskell and wait for all their results
- make sure an exception in a background thread reaches the code waiting for it instead of being lost
- race two IO actions in Haskell and cancel the one that loses

## Features

- Async values for threads that return a result
- wait, waitCatch and cancel with exceptions re-thrown to the caller
- withAsync kills child threads when the parent finishes
- concurrently, race and mapConcurrently combinators
- mapConcurrentlyBounded and Control.Concurrent.Stream for a fixed number of workers
- Warden for Asyncs that outlive a scope but are cancelled when orphaned

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.50, momentum 0.14, community 0.69, backing 0.30, extensibility 0.00.

- 331 GitHub stars
- 51 contributors
- backed by Simon Marlow

Warnings:

- last commit 5 months ago

## Alternatives

- [lifted-async](https://talira.ai/catalog/lifted-async-ttn7wa2a.md): Run lifted IO operations asynchronously in Haskell

## Sources

[^1]: https://github.com/simonmar/async/blob/master/LICENSE (checked 27 Nov 2026)
