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

Function isDone

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

Source from the content-addressed store, hash-verified

1442 * @since 4.0.0
1443 */
1444export const isDone = (self: TxQueueState): Effect.Effect<boolean> =>
1445 Effect.map(TxRef.get(self.stateRef), (state) => state._tag === "Done")
1446
1447/**
1448 * Checks whether the queue is shutdown (legacy compatibility).

Callers 1

isShutdownFunction · 0.70

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected