()
| 34 | * Get the currently active scope. |
| 35 | */ |
| 36 | export function getCurrentScope(): Scope { |
| 37 | const carrier = getMainCarrier(); |
| 38 | const acs = getAsyncContextStrategy(carrier); |
| 39 | return acs.getCurrentScope(); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Get the currently active isolation scope. |