Users
| Subject: Re: throwTo block statements considered harmful
|
| The key problem is, at least in the presence of block/unblock, that
| Exceptions are never reliably delivered.
|
| Never? Even in a function which is in a blocking state?
|
| The implementation of asynchronous signals
The key problem is, at least in the presence of block/unblock, that
Exceptions are never reliably delivered.
Never? Even in a function which is in a blocking state?
The implementation of asynchronous signals, as described by the paper
Asynchronous exceptions in Haskell
Simon Marlow,
Program A and B got word wrapped by mistake...damn it.
Program A
loop = block (print alive) loop
main = do tid - forkIO loop
threadDelay 1
killThread tid
the above print alive forever while killThread stays blocked.
Program B
loop = block (print alive) loop yield