MCPcopy
hub / github.com/Effect-TS/effect / await

Method await

packages/effect/test/STM.test.ts:49–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 this.#isOpen = true
48 }
49 await(): Effect.Effect<unknown> {
50 return Effect.async((cb) => {
51 const check = () => {
52 if (this.#isOpen) {
53 cb(Effect.void)
54 } else {
55 setTimeout(() => {
56 check()
57 }, 100)
58 }
59 }
60 setTimeout(check, 100)
61 })
62 }
63}
64
65const chain = (depth: number) =>

Callers 15

makeFunction · 0.45
asyncPauseResumeFunction · 0.45
writableOutputFunction · 0.45
runCommandFunction · 0.45
killFunction · 0.45
HttpServer.test.tsFile · 0.45
setupFunction · 0.45
runRawFunction · 0.45
workerRunner.tsFile · 0.45
launchFunction · 0.45
executeEffectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected