Closed as not planned
Description
Feature or enhancement
Introducing a function argument to itertools functions like "product" to stop the iterations on demand.
Pitch
I encountered several situations when some functions in itertools module, such as products or combinations, took either so long or so much memory to finish. I think introducing an argument function to stop the inner iterations on demand would be so helpful.