raise_stopiteration(output: Any) → NoReturn[source]¶
Raise a StopIteration exception with the given output.
reset() → None[source]¶
Reset the iterator to its initial state, clearing intermediate steps,
iterations, and time elapsed.
update_iterations() → None[source]¶
Increment the number of iterations and update the time elapsed.