then<S2> method
Runs a function that returns a Result with the success value. A failure skips it.
Implementation
Task<S2, F> then<S2>(FutureOr<Res<S2, F>> Function(S ok) run) =>
Task._(_task.then(run as FutureOr<Result<S2, F>> Function(S)));