thenAttempt<S2> method
Runs a function that may throw with the success value, catching a throw as Task.attempt does. A failure skips it.
Implementation
Task<S2, F> thenAttempt<S2>({
required FutureOr<S2> Function(S ok) run,
required F Function(Object e) handle,
}) => Task._(_task.thenAttempt(run: run, handle: handle));