threads: Fork threads and wait for their result
This package provides functions to fork threads and wait for their result, whether it's an exception or a normal value.
Besides waiting for the termination of a single thread this packages also provides functions to wait for a group of threads to terminate.
This package is similar to the
threadmanager
, async
and spawn
packages.
The advantages of this package are:
Simpler API.
More efficient in both space and time.
No space-leak when forking a large number of threads.
Correct handling of asynchronous exceptions.
GHC specific functionality like
forkOn
andforkIOWithUnmask
.
[Skip to Readme]
Downloads
- threads-0.5.1.7.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.0.1, 0.2, 0.3, 0.3.1, 0.4, 0.4.0.1, 0.4.0.2, 0.5, 0.5.0.1, 0.5.0.2, 0.5.0.3, 0.5.1.0, 0.5.1.1, 0.5.1.2, 0.5.1.3, 0.5.1.4, 0.5.1.5, 0.5.1.6, 0.5.1.7, 0.5.1.8 |
---|---|
Dependencies | base (>=4.4 && <5), stm (>=2.1) [details] |
Tested with | ghc ==7.2.2, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.2, ghc ==8.0.1, ghc ==9.4.1 |
License | BSD-3-Clause |
Copyright | 2010–2012 Bas van Dijk & Roel van Dijk |
Author | Bas van Dijk <v.dijk.bas@gmail.com> Roel van Dijk <vandijk.roel@gmail.com> |
Maintainer | Bas van Dijk <v.dijk.bas@gmail.com> Roel van Dijk <vandijk.roel@gmail.com> |
Revised | Revision 1 made by janus at 2023-03-14T21:04:30Z |
Category | Concurrency |
Home page | https://github.com/basvandijk/threads |
Bug tracker | https://github.com/basvandijk/threads/issues |
Source repo | head: git clone git://github.com/basvandijk/threads.git |
Uploaded | by janus at 2022-08-22T22:09:23Z |
Distributions | Arch:0.5.1.8, Debian:0.5.1.6, Fedora:0.5.1.8, FreeBSD:0.5.1.3, LTSHaskell:0.5.1.8, NixOS:0.5.1.8, Stackage:0.5.1.8 |
Reverse Dependencies | 8 direct, 79 indirect [details] |
Downloads | 36502 total (27 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2022-08-22 [all 1 reports] |