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

Function interrupt

packages/effect/src/Queue.ts:1099–1100  ·  view source on GitHub ↗
(self: Enqueue<A, E>)

Source from the content-addressed store, hash-verified

1097 * @since 4.0.0
1098 */
1099export const interrupt = <A, E>(self: Enqueue<A, E>): Effect<boolean> =>
1100 core.withFiber((fiber) => failCause(self, internalEffect.causeInterrupt(fiber.id)))
1101
1102/**
1103 * Shuts down the queue immediately, discarding buffered messages and resuming

Callers

nothing calls this directly

Calls 1

failCauseFunction · 0.70

Tested by

no test coverage detected