flatMapTask<B> method
Task<B>
flatMapTask<
B>( - Task<B> f(
- A a
)
)
Chain a Task with an IO.
Allows to chain a function that returns a R (IO) to
a function that returns a Future<B> (Task).
Implementation
Task<B> flatMapTask<B>(Task<B> Function(A a) f) => f(run());