flatMapTask<B> method

Task<B> flatMapTask<B>(
  1. Task<B> f(
    1. 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());