MCPcopy Create free account
hub / github.com/Effect-TS/effect / finalizer

Function finalizer

packages/effect/src/internal/effect.ts:5325–5325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5323 if (scope.state._tag !== "Closed") {
5324 const key = {}
5325 const finalizer = () => withFiberId((interruptor) => interruptor === fiber.id ? void_ : fiberInterrupt(fiber))
5326 scopeAddFinalizerUnsafe(scope, key, finalizer)
5327 fiber.addObserver(() => scopeRemoveFinalizerUnsafe(scope, key))
5328 } else {

Callers 2

Channel.tsFile · 0.85
effect.tsFile · 0.85

Calls 2

withFiberIdFunction · 0.85
fiberInterruptFunction · 0.85

Tested by

no test coverage detected