Streamer (version 1.18.0)

yield: Function to yield one task from a Stream or Producer

Description

yield invoked on a stream yields one chunk of data or, if the stream is complete, a length zero element of the data. Successive invocations of yield produce successive chunks of data.

Usage

yield(x, ...)

Arguments

x
A Stream, Producer, or Consumer object.
...
Additional arguments, currently unused.

Value

A chunk of data, with the specific notion of chunk defined by the final component of the stream.

See Also

Stream, Producer, Consumer.

Examples

Run this code
## see example(Stream)

Run the code above in your browser using DataLab