fromEither<L, R> function
Returns a TaskOption that resolves to an Option from the given Either. Left values become None, Right values are wrapped in Some.
Implementation
TaskOption<R> fromEither<L, R>(Either<L, R> either) =>
TaskOption(T.value(O.fromEither(either)));