(scope: ScopeImpl, fin: Scope.Scope.Finalizer)
| 3228 | } |
| 3229 | |
| 3230 | const scopeUnsafeAddFinalizer = (scope: ScopeImpl, fin: Scope.Scope.Finalizer): void => { |
| 3231 | if (scope.state._tag === "Open") { |
| 3232 | scope.state.finalizers.set({}, fin) |
| 3233 | } |
| 3234 | } |
| 3235 | |
| 3236 | const ScopeImplProto: Omit<ScopeImpl, "strategy" | "state"> = { |
| 3237 | [core.ScopeTypeId]: core.ScopeTypeId, |