Skip to main content

flatMap()

flatMap<A, B>(f): (fa) => Task<B>

Chains a function that returns a Task over the result.


Type Parametersโ€‹

A: Aโ€‹

The input type.

B: Bโ€‹

The output type.


Parametersโ€‹

f: (a) => Task<B>โ€‹

The chaining function.


Returnsโ€‹

A function that transforms the Task.


Sinceโ€‹

2.0.0