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

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

Modulestreamly-core-0.3.1Haskell2010

Streamly.Internal.Control.ForkIO

Synopsis
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.