HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

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

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.