It cycles through the values of the iterator yielding each value until `$num` cycles are complete. If `$num` is `INF` then the generator will continue yielding values from the iterator until iteration of the generator stops (which may be never).