Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a75383cd
Commit
a75383cd
authored
Oct 16, 2010
by
basvandijk
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refer to 'mask' instead of 'block' in documentation of Control.Exception
parent
4041be61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libraries/base/Control/Exception.hs
libraries/base/Control/Exception.hs
+4
-4
No files found.
libraries/base/Control/Exception.hs
View file @
a75383cd
...
...
@@ -122,7 +122,7 @@ module Control.Exception (
unblock
,
blocked
,
-- *** Applying @
bloc
k@ to an exception handler
-- *** Applying @
mas
k@ to an exception handler
-- $block_handler
...
...
@@ -258,12 +258,12 @@ to one of the 'catch' family of functions. This is because that is
what you want most of the time - it eliminates a common race condition
in starting an exception handler, because there may be no exception
handler on the stack to handle another exception if one arrives
immediately. If asynchronous exceptions are
bloc
ked on entering the
immediately. If asynchronous exceptions are
mas
ked on entering the
handler, though, we have time to install a new exception handler
before being interrupted. If this weren\'t the default, one would have
to write something like
>
bloc
k $ \restore ->
>
mas
k $ \restore ->
> catch (restore (...))
> (\e -> handler)
...
...
@@ -279,7 +279,7 @@ recovering from an asynchronous exception.
#interruptible#
Some operations are /interruptible/, which means that they can receive
asynchronous exceptions even in the scope of a '
bloc
k'. Any function
asynchronous exceptions even in the scope of a '
mas
k'. Any function
which may itself block is defined as interruptible; this includes
'Control.Concurrent.MVar.takeMVar'
(but not 'Control.Concurrent.MVar.tryTakeMVar'),
...
...
thomie
@trac-thomie
mentioned in commit
dc1fce13
·
Sep 26, 2014
mentioned in commit
dc1fce13
mentioned in commit dc1fce13633e44c6068eb76fc7ed48e94feb5e32
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment