asyncContext

View Source

Summary

Middleware that stores the request context in AsyncLocalStorage so it is available to all functions in the same async execution context.

Signature

function asyncContext(): Middleware;

Returns

A middleware function that stores the request context in AsyncLocalStorage