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