fromTask()
fromTask<
A,E>(fa):TaskEither<E,A>
Creates a TaskEither from a Task.
Type Parametersβ
A: Aβ
The success type.
E: E extends ErrorType = Errorβ
The error type.
Parametersβ
fa: () => Promise<A>β
The Task to convert.
Returns: TaskEither<E, A>β
A TaskEither containing the result.
Sinceβ
2.0.0