Retrieve the next item from a generator
Use to retrieve items from generators (e.g. image_data_generator()
). Will return
either the next item or NULL
if there are no more items.
generator_next(generator, completed = NULL)
Arguments
generator | Generator |
completed | Sentinel value to return from |