If you know your length in advance, you should set it here. Otherwise it's assumed to end at some point in the future, if GeneratorInstance.ICapabilities.isFinite is set to true.
This value is ignored for GeneratorInstances that are not finite (ie. GeneratorInstance.ICapabilities.isFinite).