Effect CommunityEC
Effect Community2mo ago
16 replies
thewilkybarkid

Using `acquireRelease` in an `Activity` and rollback timing issues

Is it possible to use acquireRelease inside an Activity? I’m aware there’s a withCompensation option but I’m trying to reuse existing code that has a rollback included, I don’t see the rollback happening until the whole app terminates (I see it happen on fiber #1; I’ve tried using Effect.scoped at various points, but without any difference).
Was this page helpful?