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

Function rootContains

packages/effect/test/Fiber.test.ts:170–172  ·  view source on GitHub ↗
(fiber: Fiber.RuntimeFiber<any, any>)

Source from the content-addressed store, hash-verified

168 it.effect("dual roots", () =>
169 Effect.gen(function*() {
170 const rootContains = (fiber: Fiber.RuntimeFiber<any, any>): Effect.Effect<boolean> => {
171 return pipe(Fiber.roots, Effect.map(Chunk.unsafeFromArray), Effect.map(Array.contains(fiber)))
172 }
173 const fiber1 = yield* Effect.forkDaemon(Effect.never)
174 const fiber2 = yield* Effect.forkDaemon(Effect.never)
175 yield* pipe(

Callers 1

Fiber.test.tsFile · 0.85

Calls 3

pipeFunction · 0.90
mapMethod · 0.65
containsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…