3 ms·
AFAIK combining killThread and bracket (or just about anything really) is fraught with issues[0] and hardly qualifies as clean. [0] http://blog.haskell-exists.
by masklinn 11y ago
AFAIK combining killThread and bracket (or just about anything really) is fraught with issues[0] and hardly qualifies as clean.
[0] http://blog.haskell-exists.com/yuras/posts/handling-async-exceptions-in-haskell-pushing-bracket-to-the-limits.html http://blog.haskell-exists.com/yuras/posts/handling-async-ex...
- gregwebs 11y agoYes, there is still an issue with async exceptions when there is an exception during the cleanup handler of bracket. Probably this has not received the attention it deserves because fundamentally if a cleanup handler throws an exception you may well still have resource issues. But the article also proposes ways of solving this issue, so lets not give up on async exceptions.