Please sign in to comment.
Make protect safer against exceptions in a Pipe value.
Fix an issue reported by Michael Snoyman, where an exception contained in a `Pipe` value would cause finalizers to be leaked. This commit introduces an extra monadic step at each `protect` call, which ensures that any exceptions contained in the continuation thunk can be captured and rethrown within the `Pipe` monad.
- Loading branch information...