Skip to content
  • Simon Marlow's avatar
    add forkIOWithUnmask, forkOnIOWithUnmask; deprecate forkIOUnmasked · 54c33b21
    Simon Marlow authored
        
    With forkIOUnmasked it wasn't possible to reliably set up an exception
    handler in the child thread, because exceptions were immediately
    unmasked.
    
    forkIOWithUnmask   ::        ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
    forkOnIOWithUnmask :: Int -> ((forall a . IO a -> IO a) -> IO ()) -> IO ThreadId
    54c33b21