Opened 7 years ago

Last modified 7 years ago

#4857 closed proposal

Add Control.Exception.allowInterrupt — at Initial Version

Reported by: simonmar Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/base Version: 7.0.1
Keywords: Cc: mmitar@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

This proposal is to add the following function to Control.Exception:

-- | When invoked inside 'mask', this function allows a blocked
-- asynchronous exception to be raised, if one exists.  It is
-- equivalent to performing an interruptible operation (see
-- #interruptible#), but does not involve any actual blocking.
--
-- When called outside 'mask', or inside 'uninterruptibleMask', this
-- function has no effect.
allowInterrupt :: IO ()
allowInterrupt = unsafeUnmask $ return ()

Some discussion leading up to this can be found in #3837.

Discussion period: 2 weeks (until 5 Jan 2011)

Change History (0)

Note: See TracTickets for help on using tickets.