Asynchronous exceptions and management of resources in transient
NOTE: All this has been superseeded by finalizations
I was looking at the last article of Michael Snoyman about asynchronous exceptions. Proper handling of resources in long term programs such are servers demands very accurate management of resources. In transient where many threads are spawned and sometimes killed asynchronously, this is even more important.
So I first tried to create a version of bracket for the transient monad:
bracket