Chains another task to be executed if the current task succeeds.
Task<S2, F> chain<S2>(Task<S2, F> Function(S ok) task) => Task._(_task.chain(task as t.Task<S2, F> Function(S)));