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

Class Global

packages/effect/src/internal/fiberScope.ts:30–40  ·  view source on GitHub ↗

@internal

Source from the content-addressed store, hash-verified

28
29/** @internal */
30class Global implements FiberScope {
31 readonly [FiberScopeTypeId]: FiberScopeTypeId = FiberScopeTypeId
32 readonly fiberId = FiberId.none
33 readonly roots = new Set<FiberRuntime.FiberRuntime<any, any>>()
34 add(_runtimeFlags: RuntimeFlags.RuntimeFlags, child: FiberRuntime.FiberRuntime<any, any>): void {
35 this.roots.add(child)
36 child.addObserver(() => {
37 this.roots.delete(child)
38 })
39 }
40}
41
42/** @internal */
43class Local implements FiberScope {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected