Skip to content

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 ​

ParameterTypeDescription
contextRequestContextthe context to bind.
next() => voidthe function to run.

Returns ​

void