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

Function checkInterruptible

packages/effect/src/internal/core.ts:652–654  ·  view source on GitHub ↗
(
  f: (isInterruptible: boolean) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

650
651/* @internal */
652export const checkInterruptible = <A, E, R>(
653 f: (isInterruptible: boolean) => Effect.Effect<A, E, R>
654): Effect.Effect<A, E, R> => withFiberRuntime((_, status) => f(runtimeFlags_.interruption(status.runtimeFlags)))
655
656const originalSymbol = Symbol.for("effect/OriginalAnnotation")
657

Callers

nothing calls this directly

Calls 2

withFiberRuntimeFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected