@internal
| 28 | |
| 29 | /** @internal */ |
| 30 | class 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 */ |
| 43 | class Local implements FiberScope { |
nothing calls this directly
no outgoing calls
no test coverage detected