Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / createAsyncContext
Function: createAsyncContext()
ts
function createAsyncContext<T>(_name?): AsyncContext<T>;Defined in: packages/core/src/utils/async-context.ts:36
Construct a typed AsyncContext. The optional name is surfaced in the diagnostics channel of AsyncLocalStorage (debugging only).
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
_name? | string |
Returns
AsyncContext<T>