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

Function waitUntil

packages/effect/test/Pool.test.ts:7–8  ·  view source on GitHub ↗
(predicate: () => boolean)

Source from the content-addressed store, hash-verified

5import { collectGarbage } from "./utils/gc.ts"
6
7const waitUntil = (predicate: () => boolean) =>
8 Effect.repeat(Effect.andThen(Effect.yieldNow, Effect.sync(predicate)), { until: (done) => done })
9
10describe("Pool", () => {
11 it.effect("admits requests in FIFO order when a borrower immediately reacquires", () =>

Callers 5

harness.tsFile · 0.85
waitForEntityOwnerFunction · 0.85
Bandwidth.tsFile · 0.85
Pool.test.tsFile · 0.85

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected