Type Alias: RunInReportScheduleTenantContext
type RunInReportScheduleTenantContext = <T>(context: ReportScheduleTenantContext, operation: () => Promise<T>) => Promise<T>;Defined in: server/insights/scheduling/tenant-execution.ts:21
Bind a background operation to the consumer's tenant context. Taproot's ALS
is the default; consumers using TenancyConfig.resolveBinding provide the
matching external-context bridge instead.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
context | ReportScheduleTenantContext |
operation | () => Promise<T> |
Returns
Promise<T>