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

Function isClosing

packages/effect/src/TxQueue.ts:1417–1418  ·  view source on GitHub ↗
(self: TxQueueState)

Source from the content-addressed store, hash-verified

1415 * @since 4.0.0
1416 */
1417export const isClosing = (self: TxQueueState): Effect.Effect<boolean> =>
1418 Effect.map(TxRef.get(self.stateRef), (state) => state._tag === "Closing")
1419
1420/**
1421 * Checks whether the queue is done (completed or failed).

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected