(isolationScope: Scope, callback: (isolationScope: Scope) => T)
| 63 | } |
| 64 | |
| 65 | function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T { |
| 66 | const scope = getScopes().scope; |
| 67 | return asyncStorage.run({ scope, isolationScope }, () => { |
| 68 | return callback(isolationScope); |
| 69 | }); |
| 70 | } |
| 71 | |
| 72 | // In contrast to the browser, we can rely on async context isolation here |
| 73 | function suppressTracing<T>(callback: () => T): T { |