(isolationScope: Scope, callback: (isolationScope: Scope) => T)
| 71 | } |
| 72 | |
| 73 | function withSetIsolationScope<T>(isolationScope: Scope, callback: (isolationScope: Scope) => T): T { |
| 74 | const scope = getScopes().scope; |
| 75 | return asyncStorage.run({ scope, isolationScope }, () => { |
| 76 | return callback(isolationScope); |
| 77 | }); |
| 78 | } |
| 79 | |
| 80 | // In contrast to the browser, we can rely on async context isolation here |
| 81 | function suppressTracing<T>(callback: () => T): T { |