Package2.2.6Concurrency
async
Run IO operations asynchronously and wait for their results
- Version2.2.6
- CategoryConcurrency
- LicenceBSD-3-Clause
- AuthorSimon Marlow
- MaintainerSimon Marlow <marlowsd@gmail.com>
- Homepagegithub.com/simonmar/async
- Pinned byhackage async 2.2.6
- Sourcehackage.haskell.org/package/async-2.2.6
Modules
4 modules- Control.Concurrent.Async58This module provides a set of operations for running IO operations
- Control.Concurrent.Async.Warden8A more flexible way to create Asyncs and have them automatically
- Control.Concurrent.Stream7Processing streams with a fixed number of worker threads
Internal modules · 1
- Control.Concurrent.Async.Internal67This module is an internal module. The public API is provided in
Description
This package provides a higher-level interface over threads, in which an Async a is a concurrent thread that will eventually deliver a value of type a. The package provides ways to create Async computations, wait for their results, and cancel them.
Using Async is safer than using threads in two ways:
When waiting for a thread to return a result, if the thread dies with an exception then the caller must either re-throw the exception (wait) or handle it (waitCatch); the exception cannot be ignored. The API makes it possible to build a tree of threads that are automatically killed when their parent dies (see withAsync).
Depends on
4 packages- base-4.22.0.0with GHC
- hashable-1.5.1.0in this set
- stm-2.5.3.1with GHC
- unordered-containers-0.2.21in this set
Used by in this set · 29
- Agda-2.8.0.2
- async-timer-0.2.0.0
- cabal-install-3.16.0.0
- concurrent-output-1.10.21
- conduit-extra-1.3.8
- dns-4.2.0
- effectful-2.7.1.0
- hedgehog-1.7
- hedis-0.16.4
- http-client-0.7.19
- http2-5.4.8
- katip-0.8.8.4
- lifted-async-0.11.0
- polysemy-1.9.2.0
- polysemy-zoo-0.8.2.0
- procex-0.3.3
- sandwich-0.3.1.0
- servant-websockets-2.0.0
- shelly-1.12.1.1
- statistics-0.16.5.0
- store-0.7.22
- streaming-commons-0.2.3.1
- sydtest-0.33.0.0
- turtle-1.6.2
- typed-process-0.2.13.0
- unliftio-0.2.25.1
- vcr-0.1.0
- warp-3.4.16
- websockets-0.13.0.0