Consider having a better looping strategy

Antonio BULGHERONI
2026-02-28T16:46:35Z

For the moment we have either for-loop or no-loop processor. The execution flow is modified by a parameter in the processor constructor (looper). Theoretically we can also have a while-loop structure.

- [x] We could replace the boolean looper with an enumerator.
- [x] We could refactor the execute method to be a container for a case switch depending on the enumerator and calling different private methods (single_execute, for_loop_execute, while_loop_execute)
- [x] include a test that all required methods for each looping strategies have been implemented. See [this answer](https://stackoverflow.com/questions/9436681/how-to-detect-method-overloading-in-subclasses-in-python)
- [ ] We could include also concurrent pool for-loop
- [x] We could introduce class decorators that are setting the value of the looper variable, because the user may forget to define that in the super constructor.
- [x] Update documentation and examples.
- [x] Update test suite