MCPcopy Index your code
hub / github.com/Effect-TS/effect / stackIOs

Function stackIOs

packages/effect/test/Effect/async.test.ts:44–46  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

42 })
43 }
44 const stackIOs = (count: number): Effect.Effect<number> => {
45 return count < 0 ? Effect.succeed(42) : asyncIO(stackIOs(count - 1))
46 }
47 const procNum = Effect.sync(() => os.cpus().length)
48 const result = yield* pipe(procNum, Effect.flatMap(stackIOs))
49 strictEqual(result, 42)

Callers

nothing calls this directly

Calls 1

asyncIOFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…