Using `Effect.addFinalizer` in a Workflow for Cleanup
can I simply use
I see withCompensation (which executes an Effect if workflow failed), checks if workflow is suspended: is this something essential or just an optimisation?
Effect.addFinalizer inside a workflow if I want to get some code exectude regardless of workflow's success or failure? I see withCompensation (which executes an Effect if workflow failed), checks if workflow is suspended: is this something essential or just an optimisation?
