Skip to main content

TaskEither()<E, A>

TaskEither<E, A> = () => Promise<Either<E, A>>

TaskEither represents an asynchronous computation that may fail.


Type Parametersโ€‹

E: Eโ€‹

The error type.

A: Aโ€‹

The success type.


Returns: Promise<Either<E, A>>โ€‹


Sinceโ€‹

2.0.0