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 forkOn and forkIOWithUnmask.


Keywords
concurrency, library, Propose Tags, Skip to Readme, , Index, Quick Jump, Control.Concurrent.Thread, Control.Concurrent.Thread.Group, threads-0.5.1.8.tar.gz, browse, Package description, Package maintainers, BasVanDijk, RoelVanDijk, janus, edit package information , threadmanager, async, spawn, forkOnIO, forkIOUnmasked, haskell
License
BSD-3-Clause
Install
cabal install threads-0.5.0.3

Documentation

Hackage Build Status

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.