stack

Home > @infiniteobjects/express-cloud-function > Utils > wrapAsyncRequestHandler

Utils.wrapAsyncRequestHandler() method

Wraps an async route in a try/catch

Signature:

static wrapAsyncRequestHandler(handler: AsyncRequestHandler): RequestHandler;

Parameters

Parameter Type Description
handler AsyncRequestHandler  

Returns:

RequestHandler

Remarks

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