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

Function makeChild

packages/effect/test/Effect/concurrency.test.ts:138–140  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

136 it.live("supervise fibers", () =>
137 Effect.gen(function*() {
138 const makeChild = (n: number): Effect.Effect<Fiber.Fiber<void>> => {
139 return pipe(Effect.sleep(Duration.millis(20 * n)), Effect.zipRight(Effect.never), Effect.fork)
140 }
141 const ref = yield* (Ref.make(0))
142 yield* pipe(
143 makeChild(1),

Callers 1

Calls 2

sleepMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected