Function
withSetScope
(scope: Scope, callback: (scope: Scope) => T)
Source from the content-addressed store, hash-verified
| 56 | } |
| 57 | |
| 58 | function withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T { |
| 59 | const isolationScope = getScopes().isolationScope.clone(); |
| 60 | return asyncStorage.run({ scope, isolationScope }, () => { |
| 61 | return callback(scope); |
| 62 | }); |
| 63 | } |
| 64 | |
| 65 | function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T { |
| 66 | const scope = getScopes().scope; |
Callers
nothing calls this directly
Tested by
no test coverage detected