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

Function shutdown

packages/effect/src/TxQueue.ts:1359–1363  ·  view source on GitHub ↗
(self: TxEnqueue<A, E>)

Source from the content-addressed store, hash-verified

1357 * @since 2.0.0
1358 */
1359export const shutdown = <A, E>(self: TxEnqueue<A, E>): Effect.Effect<boolean> =>
1360 Effect.gen(function*() {
1361 yield* Effect.ignoreCause(clear(self))
1362 return yield* interrupt(self)
1363 }).pipe(Effect.tx)
1364
1365/**
1366 * Checks whether the queue is in the open state.

Callers

nothing calls this directly

Calls 3

clearFunction · 0.70
interruptFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected