tryOf
tryOf<
T>(compute):Try<T>
Defined in: src/util/Try.ts:159
Run compute and wrap the outcome. Any thrown value becomes Failure.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”compute
Section titled “compute”() => T
Returns
Section titled “Returns”Try<T>