JobPool allows to submit asynchronous jobs, wait for their completion or cancel. Jobs are grouped, each group can be cancelled separately.
Modulenetwork-mux-0.11.0.0Haskell2010
Control.Concurrent.JobPool
This module allows the management of a multiple Async jobs which are grouped by an 'Ord group => group' type.
- 2 types
- 7 values
- Packagenetwork-mux-0.11.0.0
- Exports9
- LanguageHaskell2010
- LicenceApache-2.0
- SourceJobPool.hs
An asynchronous job which belongs to some group and its exception handler.
Constructors
Job (m a) (SomeException -> m a) group String
Wait for next successfully completed job. Unlike wait it will not throw if a job errors.
Cancel all threads in a given group. Blocks until all threads terminated.