Home > @infiniteobjects/express-cloud-function > Utils > wrapAsyncRequestHandler
Wraps an async route in a try/catch
Signature:
static wrapAsyncRequestHandler(handler: AsyncRequestHandler): RequestHandler;
Parameter | Type | Description |
---|---|---|
handler | AsyncRequestHandler |
Returns:
RequestHandler
Extreamely helpfull to use async/await without worrying about dangling promises