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

Function isOpen

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

Source from the content-addressed store, hash-verified

1387 * @since 4.0.0
1388 */
1389export const isOpen = (self: TxQueueState): Effect.Effect<boolean> =>
1390 Effect.map(TxRef.get(self.stateRef), (state) => state._tag === "Open")
1391
1392/**
1393 * Checks whether the queue is in the closing state.

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected