Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
The runtime tries to run synchronous threads to completion. Sometimes it's
not possible to continue running a thread, for example when the thread
tries to take an empty MVar
. The runtime can then either throw a
WouldBlockException
, aborting the blocking action, or continue the
thread asynchronously.
ContinueAsync | continue the thread asynchronously if blocked |
ThrowWouldBlock | throw |
data WouldBlockException Source #
If a synchronous thread tries to do something that can only be done asynchronously, and the thread is set up to not continue asynchronously, it receives this exception.