Package Info

ghc-async


Run IO operations asynchronously and wait for their results


Unspecified

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').


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/async

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
2.2.4-150500.1.1 info GA Release 2022-12-13 15 SP5 Subpackages
  • x86-64
  • ghc-async
  • ghc-async-devel
2.2.4-bp154.1.11 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-async
  • ghc-async-devel
2.2.2-bp153.1.20 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-async
  • ghc-async-devel
2.2.2-bp152.2.2 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-async
  • ghc-async-devel
2.2.1-bp151.2.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • x86-64
  • ghc-async
  • ghc-async-devel
2.2.1-bp151.1.10 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-async
  • ghc-async-devel
2.1.1.1-bp150.2.7 info GA Release 2018-08-01 15
  • AArch64
  • ghc-async
  • ghc-async-devel
2.1.1.1-bp150.2.8 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-async
  • ghc-async-devel
2.1.0-6.7 info 5585 2016-09-14 12 GA-SP5
  • AArch64
  • s390x
  • x86-64
  • ghc-async
  • ghc-async-devel
2.1.0-6.2 info 5585 2016-09-14 12 GA-SP5
  • ppc64le
  • ghc-async
  • ghc-async-devel
2.1.0-3.1 info openSUSE-2016-291 2016-07-04 12 GA-SP5
  • x86-64
  • ghc-async
  • ghc-async-devel