HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

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
datadata JobPool group (m :: Type -> Type) a
#

JobPool allows to submit asynchronous jobs, wait for their completion or cancel. Jobs are grouped, each group can be cancelled separately.

datadata Job group (m :: Type -> Type) a
#

An asynchronous job which belongs to some group and its exception handler.

Constructors

valuecancelGroup
  1. :: (MonadAsync m, Eq group)
  2. => JobPool group m a
  3. -> group
  4. -> m ()
#

Cancel all threads in a given group. Blocks until all threads terminated.