Finish producing.
Finish producing.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
Upgrades Iterator
s to return results in batches of a given size.
Upgrades Iterator
s to return results in batches of a given size.
(Note that paging does imply anything on the buffering strategy)
Make an element available for the consumer.
Make an element available for the consumer.
Instruct the implementation to truncate at its earliest convenience and dispose of resources.
Instruct the implementation to truncate at its earliest convenience and dispose of resources.
true
if the consumer instructed the producer to stop.
Appropriate for memory constrained environments.
Uses a finitely sized buffer to block the producer from adding elements onto a
Queue
when the consumer is slow.Has an optional timeout on the block operation, at which point an exception is raised from all
Iterator
methods. If no timeout is used, the producer may block forever. If a zero timeout is given, the buffer must never overflow (and the producer will never be blocked).