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