HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Moduleasync-2.2.6Haskell2010

Control.Concurrent.Async.Warden

A more flexible way to create Asyncs and have them automatically cancelled when the Warden is shut down.

Synopsis
  • Packageasync-2.2.6
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceWarden.hs
valueshutdown :: Warden -> IO ()

Shutdown a Warden, calling cancel on all owned threads. Subsequent calls to spawn and shutdown will be no-ops.

Note that any exceptions thrown by the threads will be ignored. If you want exceptions to be propagated, either call wait explicitly on the Async, or use link.