Flat a Task contained inside another Task to be a single Task.
factory Task.flatten(Task<Task<A>> task) => task.flatMap(identity);