postRun method
Action to run after a task associated with this RunCondition has run, whether successfully or not.
This method will not be called if the Dartle cache has been disabled.
Implementation
@override
FutureOr<void> postRun(TaskResult result) async {
final errors = <ExceptionAndStackTrace>[];
for (var cond in conditions) {
try {
await cond.postRun(result);
} on Exception catch (e, st) {
errors.add(ExceptionAndStackTrace(e, st));
}
}
if (errors.isNotEmpty) {
throw MultipleExceptions(errors);
}
}