Thursday 18 January 2018

Operator - Delay




Delay

shift the emissions from an Observable forward in time by a particular amount




The Delay operator modifies its source Observable by pausing for a particular increment of time (that you specify) before emitting each of the source Observable’s items. This has the effect of shifting the entire sequence of items emitted by the Observable forward in time by that specified increment.

-----------------------------------------------------

Observable
fromIterable(list)
.toList()
.delay(50, TimeUnit.MILLISECONDS)
.subscribe(System.out::println);

----------------------------------------------------


























22

No comments:

Post a Comment

Calling method Sequencely

1. Execute multiple task sequencly (WAY-1) ------------------------------------------------------------------------------ import io.re...