Idiomatic way to interrupt an Effect when an error occurs inside Effect.gen
What would be the idiomatic way of interrupt an Effect when an error happens inside an
Example code
Will that
The idea is to perform some cleanup and messaging functions and interrupt the execution
What if I want to interrupt the execution early? let's say only move into
Consider
Effect.gen?Example code
Will that
Effect.catchAll be the way to fallback if some of the previous function errored?The idea is to perform some cleanup and messaging functions and interrupt the execution
What if I want to interrupt the execution early? let's say only move into
lastStep() call if the previous functions were succesfull ?Consider
function1() and function2() using Effect.tryCatchPromise