How to Catch Interrupted Fibers in Error Logging Function
I have a function that forks some fibers and in case of errors logs them, a simple
T.tapErrorCause(errCause => T.logErrorCauseMessage(`Error in forkScopedNamed ${name}!`, errCause)),
T.tapErrorCause(errCause => T.logErrorCauseMessage(`Error in forkScopedNamed ${name}!`, errCause)),
. When I interrupt the fiber however that logs "All fibers interrupted without errors.". How can I catch the interrupted case so I'm not logging that extra noise when there's not actually an error?