File: README.markdown

package info (click to toggle)
haskell-threads 0.5.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 88 kB
  • sloc: haskell: 362; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[![Hackage](https://img.shields.io/hackage/v/threads.svg)](https://hackage.haskell.org/package/threads)
[![Build Status](https://travis-ci.org/basvandijk/threads.svg)](https://travis-ci.org/basvandijk/threads)

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 [forkOnIO] and [forkIOUnmasked].

[threadmanager]:  http://hackage.haskell.org/package/threadmanager
[async]:          http://hackage.haskell.org/package/async
[spawn]:          http://hackage.haskell.org/package/spawn
[forkOnIO]:       http://hackage.haskell.org/packages/archive/base/latest/doc/html/GHC-Conc-Sync.html#v:forkOnIO
[forkIOUnmasked]: http://hackage.haskell.org/packages/archive/base/latest/doc/html/GHC-Conc-Sync.html#v:forkOnIOUnmasked