Try to run a function and return the result. If the function throws, return the result of the catch
function.
Symbol
$.ShellPromise.try
@param fn
The function to run
@param args
The arguments to pass to the function. This is similar to setTimeout
and avoids the extra closure.
@returns
The result of the function or the result of the catch
function