A higher-order function that wraps the provided function with a try-catch block. It catches any errors that occur during the execution of the function and handles them according to
the specified configuration.
trycatch<T, A, V>(run, config?): ((...args: A) => null | ReturnType<T>)
A higher-order function that wraps the provided function with a try-catch block. It catches any errors that occur during the execution of the function and handles them according to the specified configuration.