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

Function awaitCompletion

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

Source from the content-addressed store, hash-verified

1495 * @since 4.0.0
1496 */
1497export const awaitCompletion = (self: TxQueueState): Effect.Effect<void> =>
1498 Effect.gen(function*() {
1499 const state = yield* TxRef.get(self.stateRef)
1500
1501 if (state._tag === "Done") {
1502 return void 0
1503 }
1504
1505 // Not done yet, retry transaction
1506 return yield* Effect.txRetry
1507 }).pipe(Effect.tx)

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected