(this: Lifetime<any>, atom: Atom.Atom<A>)
| 856 | return (this as Lifetime<any>).node.registry |
| 857 | }, |
| 858 | |
| 859 | addFinalizer(this: Lifetime<any>, f: () => void): void { |
| 860 | if (this.disposed) return f() |
| 861 | this.finalizers ??= [] |
| 862 | this.finalizers.push(f) |
| 863 | }, |
| 864 | |
| 865 | get<A>(this: Lifetime<any>, atom: Atom.Atom<A>): A { |
| 866 | if (this.disposed) { |
| 867 | return this.node.registry.get(atom) |
| 868 | } |
no test coverage detected