Merge pull request #20125 from kelebra/19039-kelebra-cycle

#19039: Added cycle method to Source class.
This commit is contained in:
Patrik Nordwall 2016-04-26 16:47:02 +02:00
commit 0b0a456e28
6 changed files with 61 additions and 0 deletions

View file

@ -47,6 +47,17 @@ Stream a single object repeatedly
**completes** never
cycle
^^^^^
Stream iterator in cycled manner. Internally new iterator is being created to cycle the one provided via argument meaning
when original iterator runs out of elements process will start all over again from the beginning of the iterator
provided by the evaluation of provided parameter. If method argument provides empty iterator stream will be terminated with
exception.
**emits** the next value returned from cycled iterator
**completes** never
tick
^^^^
A periodical repetition of an arbitrary object. Delay of first tick is specified

View file

@ -46,6 +46,17 @@ Stream a single object repeatedly
**completes** never
cycle
^^^^^
Stream iterator in cycled manner. Internally new iterator is being created to cycle the one provided via argument meaning
when original iterator runs out of elements process will start all over again from the beginning of the iterator
provided by the evaluation of provided parameter. If method argument provides empty iterator stream will be terminated with
exception.
**emits** the next value returned from cycled iterator
**completes** never
tick
^^^^
A periodical repetition of an arbitrary object. Delay of first tick is specified