Emit a perpetual readable stream by providing a function that returns the next segment of the readable stream.