Wraps the function passed to asyncFunc in a try/catch block to reduce boilerplate code.
asyncFunc
The function to wrap in the try/catch.
Custom fallback value or error message.
A promise determined by the input function.
Wraps the function passed to
asyncFuncin a try/catch block to reduce boilerplate code.