SudoSOS Back-end API / internal/helpers / runWithRequestContext
Function: runWithRequestContext() ​
ts
function runWithRequestContext(context, next): void;Run the given function with the given request context bound to it. The context remains available in everything the function awaits or schedules.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
context | RequestContext | the context to bind. |
next | () => void | the function to run. |
Returns ​
void