How to distinguish a finite and infinite producer automatically?
Situation:
So far, it seems that they differ only in the behavior that a finite producer invokes terminate()
within its execute()
method and an infinite not.
Requirements:
- It would be best if the framework could decide whether a producer is finite or infinite.