stabilize method
Runs update until it completes with false
, reporting stabilized.
If more then threshold
attempts occur, throws WillNeverStabilizeError
.
Implementation
Future<void> stabilize({
void Function()? runAndTrackSideEffects,
int threshold = 100,
}) async {
if (runAndTrackSideEffects != null) {
await update(runAndTrackSideEffects);
}
return stabilizeWithThreshold(threshold);
}