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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Control.ForkIO

  • 3 values
valuerawForkIO :: IO () -> IO ThreadId
#

Stolen from the async package. The perf improvement is modest, 2% on a thread heavy benchmark (parallel composition using noop computations). A version of forkIO that does not include the outer exception handler: saves a bit of time when we will be installing our own exception handler.

valueforkIOManaged :: IO () -> IO ThreadId
#

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

valueforkManagedWith :: MonadIO m => (m () -> m ThreadId) -> m () -> m ThreadId
#

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