Fixed 19039 for both scaladsl and javadsl

19039: Added cycle method to Source class for both scaladsl and javadsl. Test added.
This commit is contained in:
Oleksii Tkachuk 2016-03-22 21:59:52 -05:00
parent b3444fa1b0
commit 78e0a534f4
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