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

Function isInterrupted

packages/effect/src/unstable/reactivity/AsyncResult.ts:288–289  ·  view source on GitHub ↗
(result: AsyncResult<A, E>)

Source from the content-addressed store, hash-verified

286 * @since 4.0.0
287 */
288export const isInterrupted = <A, E>(result: AsyncResult<A, E>): result is Failure<A, E> =>
289 result._tag === "Failure" && Cause.hasInterruptsOnly(result.cause)
290
291/**
292 * Creates a `Failure` result from a `Cause`, optionally preserving a previous success and marking the result as waiting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected