Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basvandijk/threads
Fork threads and wait for their result
https://github.com/basvandijk/threads
concurrency haskell
Last synced: 3 months ago
JSON representation
Fork threads and wait for their result
- Host: GitHub
- URL: https://github.com/basvandijk/threads
- Owner: basvandijk
- License: other
- Created: 2011-04-17T15:01:53.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T17:48:26.000Z (over 1 year ago)
- Last Synced: 2024-05-08T20:12:08.973Z (8 months ago)
- Topics: concurrency, haskell
- Language: Haskell
- Homepage:
- Size: 98.6 KB
- Stars: 27
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
[![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