The threads package
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 and async 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 forkOnIO.
Properties
| Versions | 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 |
|---|---|
| Dependencies | base (≥3 & <4.3), base-unicode-symbols (≥0.1.1 & <0.3), stm (2.1.*) |
| License | BSD3 |
| Copyright | (c) 2010 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> |
| Stability | experimental |
| Category | Concurrency |
| Source repository | darcs get http://code.haskell.org/~basvandijk/code/threads |
| Executables | test-threads |
| Upload date | Tue Jun 15 18:31:45 UTC 2010 |
| Uploaded by | BasVanDijk |
| Built on | ghc-6.12 |
| Distributions | NixOS: 0.5.0.2, Debian: 0.5.0.1, FreeBSD: 0.5.0.2 |
Modules
- Control
Downloads
- threads-0.3.tar.gz (Cabal source package)
- package description (included in the package)