eitherOf
eitherOf<
R>(compute):Either<Error,R>
Defined in: src/util/Either.ts:145
Convert a thunk into Either<Error, R> — Right on return, Left with
the thrown value (coerced to Error) on throw.
Type Parameters
Section titled “Type Parameters”R
Parameters
Section titled “Parameters”compute
Section titled “compute”() => R
Returns
Section titled “Returns”Either<Error, R>