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

Function interrupt

packages/effect/src/Deferred.ts:629–630  ·  view source on GitHub ↗
(self: Deferred<A, E>)

Source from the content-addressed store, hash-verified

627 * @since 2.0.0
628 */
629export const interrupt = <A, E>(self: Deferred<A, E>): Effect<boolean> =>
630 core.withFiber((fiber) => interruptWith(self, fiber.id))
631
632/**
633 * Attempts to complete the `Deferred` with interruption by the specified

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected