MCPcopy Create free account
hub / github.com/effect-app/libs / cancel

Function cancel

repos/effect/packages/effect/src/unstable/reactivity/Atom.ts:594–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592 onExit(result)
593 return undefined
594 }
595 const remove = fiber.addObserver(onExit)
596 function cancel() {
597 remove()
598 if (!uninterruptible) {
599 fiber.interruptUnsafe()
600 }
601 }
602 return cancel

Callers 7

makeStreamPullEffectFunction · 0.70
Atom.tsFile · 0.70
AtomRegistry.tsFile · 0.70
resultOnceFunction · 0.70
someOnceFunction · 0.70
fiberAwaitAllFunction · 0.50
fiberJoinAllFunction · 0.50

Calls 2

interruptUnsafeMethod · 0.80
removeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…