Effect CommunityEC
Effect Community5mo ago
7 replies
adrian_g

Using `Effect.addFinalizer` in a Workflow for Cleanup

can I simply use 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?
Was this page helpful?