Skip to content

basalt / core/src / runWithContext

Function: runWithContext() ​

> runWithContext<T>(context, fn): T

Defined in: core/src/context.ts:35

Runs fn with the given context active (including across awaits and callbacks).

Type Parameters ​

T ​

T

Parameters ​

context ​

RequestContext

fn ​

() => T

Returns ​

T

Released under the MIT License.