Function: runWithContext()
runWithContext<
T>(context,fn):T
Defined in: packages/common/src/correlation.ts:61
Runs fn with context visible to currentContext for everything it
awaits, so no caller passes the id explicitly.
Type Parameters
T
T
Parameters
context
fn
() => T
Returns
T
Whatever fn returns. The context does not leak past fn's async tree.