MCPcopy Create free account
hub / github.com/effect-app/libs / interrupt

Function interrupt

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

Source from the content-addressed store, hash-verified

1075 * yield* Queue.offer(queue, 2)
1076 *
1077 * // Interrupt gracefully - no more offers accepted, but messages can be consumed
1078 * const interrupted = yield* Queue.interrupt(queue)
1079 *
1080 * // Trying to offer more messages will return false
1081 * const offerResult = yield* Queue.offer(queue, 3)

Callers

nothing calls this directly

Calls 1

failCauseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…