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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulestreamly-0.11.1Haskell2010

Streamly.Internal.Control.ForkLifted

  • 4 values
  • Packagestreamly-0.11.1
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceForkLifted.hs
valuedoFork
  1. :: MonadRunInIO m
  2. => m ()
  3. -> RunInIO m
  4. -> SomeException -> IO ()
  5. -> m ThreadId
#

Fork a thread to run the given computation, installing the provided exception handler. Lifted to any monad with 'MonadRunInIO m' capability.

TODO: the RunInIO argument can be removed, we can directly pass the action as "mrun action" instead.

valueforkManaged :: MonadRunInIO m => m () -> m ThreadId
#

Fork a thread that is automatically killed as soon as the reference to the returned threadId is garbage collected.