Handling Errors with Access to Context in Effect's Gen Function

hi, is there any equivalent to addFinalizer but for errors/defect, i see Effect.onError but i cannot write inside the gen function as i write Effect.addFinalizer since, i can have access to the data and context inside gen function so i can rollback things needed to rollback if any error/defect occurs, since addFinalizer runs when effect is scoped.
Was this page helpful?