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

Method add

packages/effect/src/internal/fiberScope.ts:50–59  ·  view source on GitHub ↗
(_runtimeFlags: RuntimeFlags.RuntimeFlags, child: FiberRuntime.FiberRuntime<any, any>)

Source from the content-addressed store, hash-verified

48 ) {
49 }
50 add(_runtimeFlags: RuntimeFlags.RuntimeFlags, child: FiberRuntime.FiberRuntime<any, any>): void {
51 this.parent.tell(
52 FiberMessage.stateful((parentFiber) => {
53 parentFiber.addChild(child)
54 child.addObserver(() => {
55 parentFiber.removeChild(child)
56 })
57 })
58 )
59 }
60}
61
62/** @internal */

Callers

nothing calls this directly

Calls 4

tellMethod · 0.80
addChildMethod · 0.80
removeChildMethod · 0.80
addObserverMethod · 0.65

Tested by

no test coverage detected