HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestreamly-0.10.1Haskell2010

Streamly.Internal.Control.ForkLifted

  • 4 values
  • Packagestreamly-0.10.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.