MCPcopy
hub / github.com/Effect-TS/effect / isInterrupted

Method isInterrupted

packages/effect/src/internal/fiberRuntime.ts:743–745  ·  view source on GitHub ↗

* Determines if the fiber is interrupted. * * **NOTE**: This method is safe to invoke on any fiber, but if not invoked * on this fiber, then values derived from the fiber's state (including the * log annotations and log level) may not be up-to-date.

()

Source from the content-addressed store, hash-verified

741 * log annotations and log level) may not be up-to-date.
742 */
743 isInterrupted(): boolean {
744 return !internalCause.isEmpty(this.getFiberRef(core.currentInterruptedCause))
745 }
746
747 /**
748 * Adds an interruptor to the set of interruptors that are interrupting this

Callers 15

evaluateEffectMethod · 0.95
[OpCodes.OP_FAILURE]Method · 0.95
Worker.test.tsFile · 0.80
onFailureFunction · 0.80
handleRequestFunction · 0.80
FiberSet.test.tsFile · 0.80
Fiber.test.tsFile · 0.80

Calls 2

getFiberRefMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected