We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
runWithAsyncContext
1 parent 0e20bb5 commit a5c0430Copy full SHA for a5c0430
packages/core/src/hub.ts
@@ -589,9 +589,11 @@ export function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefin
589
}
590
591
/**
592
- * @private Private API with no semver guarantees!
+ * Runs the supplied callback in its own async context. Async Context strategies are defined per SDK.
593
*
594
- * Runs the supplied callback in its own async context.
+ * @param callback The callback to run in its own async context
595
+ * @param options Options to pass to the async context strategy
596
+ * @returns The result of the callback
597
*/
598
export function runWithAsyncContext<T>(callback: (hub: Hub) => T, options: RunWithAsyncContextOptions = {}): T {
599
const registry = getMainCarrier();
0 commit comments