Function
scopeUnsafeAddFinalizer
(scope: ScopeImpl, fin: Scope.Scope.Finalizer)
Source from the content-addressed store, hash-verified
| 3218 | } |
| 3219 | |
| 3220 | const scopeUnsafeAddFinalizer = (scope: ScopeImpl, fin: Scope.Scope.Finalizer): void => { |
| 3221 | if (scope.state._tag === "Open") { |
| 3222 | scope.state.finalizers.set({}, fin) |
| 3223 | } |
| 3224 | } |
| 3225 | |
| 3226 | const ScopeImplProto: Omit<ScopeImpl, "strategy" | "state"> = { |
| 3227 | [core.ScopeTypeId]: core.ScopeTypeId, |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…