stack

Home > @infiniteobjects/express-server > Utils > wrapAsyncRequestParamHandler

Utils.wrapAsyncRequestParamHandler() method

Wraps an async RequestParamHandler in a try/catch

Signature:

static wrapAsyncRequestParamHandler(handler: AsyncRequestParamHandler): RequestParamHandler;

Parameters

Parameter Type Description
handler AsyncRequestParamHandler  

Returns:

RequestParamHandler

Remarks

Extreamely helpfull to use async/await without worrying about dangling promises