Wraps a function to catch any exceptions inside and return a Result tuple with the value and error, if any.
A new function that wraps fn and returns the result tuple.
fn
The function to wrap.
Generated using TypeDoc
Wraps a function to catch any exceptions inside and return a Result tuple with the value and error, if any.
Returns
A new function that wraps
fn
and returns the result tuple.