Wraps and invokes a function and catches any errors that are thrown. Promises are also handled.
The type of the return value of the function or promise.
The function or promise to wrap.
a tuple with the error and the result.
Generated using TypeDoc
Wraps and invokes a function and catches any errors that are thrown. Promises are also handled.