% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/preprocessing.R
\name{generator_next}
\alias{generator_next}
\title{Retreive the next item from a generator}
\usage{
generator_next(generator, completed = NULL)
}
\arguments{
\item{generator}{Generator}

\item{completed}{Sentinel value to return from \code{generator_next()} if the iteration
completes (defaults to \code{NULL} but can be any R value you specify).}
}
\description{
Use to retrieve items from generators (e.g. \code{\link[=image_data_generator]{image_data_generator()}}). Will return
either the next item or \code{NULL} if there are no more items.
}
