Effect Scope

Manage resource lifecycles with Effect Scope — Effect.acquireRelease/addFinalizer/scoped/scopedWith, onExit/ensuring finalizers, manual Scope.make/close/fork, ScopedRef, and scope ownership in Layers and fibers. Use when acquiring anything that needs guaranteed cleanup (file handles, connections, event listeners, temp files), when Scope appears in an effect's R, or when resources leak or are released too early.

mpsuesser 540100e 32.8 KB Updated

File contents

mpsuesser/opencode-effect-enforcer/tree/main/skills/effect-scope commit 540100e68f

Frequently asked questions

npx skillmds@latest add mpsuesser/effect-scope