kosmikus, Exceptions, especially asynchronous exceptions, can be tricky to reason about. That's why Edsko and I are going to talk about the bracket and generalBracket functions in today's 10th episode of the #Haskell Unfolder! Join us live on YouTube, 2023-08-30 at 1830 UTC (or watch the recording later).
https://www.youtube.com/watch?v=_PlSAWOYgbE&list=PLD8gywOEY4HaG5VSrKVnHxCptlJv2GAn7&index=10