EffectTalk

Release runs even on failure

One of the key guarantees of `acquireRelease`: the release effect runs even when the use phase fails. No matter what happens—success, failure, or interruption—cleanup runs.

Compare with raw try/finally: Effect's bracket is more reliable.

  • Release runs even when the inner Effect fails
  • Release runs on interruption too
  • This is the bracket pattern—guaranteed cleanup
Loading code editor...