iterate method

  1. @visibleForTesting
Future<void> iterate()

Implementation

@visibleForTesting
Future<void> iterate() async {
  //
  // For each iteration
  //
  for (var iteration = 0; iteration < iterations; iteration++) {
    //
    // For each of the four slices
    //
    for (var slice = 0; slice < 4; slice++) {
      for (var lane = 0; lane < parallelism; lane++) {
        await processSegment(
          iteration: iteration,
          slice: slice,
          lane: lane,
        );
      }
    }
  }
}