progress method

  1. @override
Future<CelmProgress> progress(
  1. String runId, {
  2. AnalysisActor? actor,
})
override

Progress, attempts and remaining budget of a run; its outcome once it has ended.

Implementation

@override
Future<CelmProgress> progress(String runId, {AnalysisActor? actor}) async {
  final run = _runs[runId];
  if (run == null) {
    throw AnalysisError(
      code: 'celm.run_not_found',
      message: 'Run "$runId" not found',
      details: {'runId': runId},
    );
  }
  return run;
}