Skip to content

Commit

Permalink
base: Fix documentation for forkIOWithUnmask
Browse files Browse the repository at this point in the history
forkIOUnmasked has been deprecated for several years now. Update reference to
it. See #4858 and #5546.

(cherry picked from commit 1840121)
  • Loading branch information
bgamari committed May 7, 2017
1 parent 6723c2f commit 1cd69b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/base/GHC/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ onException io what = io `catchException` \e -> do _ <- what
-- use @mask_ $ forkIO ...@. This is particularly useful if you need
-- to establish an exception handler in the forked thread before any
-- asynchronous exceptions are received. To create a a new thread in
-- an unmasked state use 'Control.Concurrent.forkIOUnmasked'.
-- an unmasked state use 'Control.Concurrent.forkIOWithUnmask'.
--
mask :: ((forall a. IO a -> IO a) -> IO b) -> IO b

Expand Down

0 comments on commit 1cd69b9

Please sign in to comment.