You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- javadocs explaining differences
- link between throttleLast and sample (aliase)
- refactored throttleFirst to be a more efficient implementations
- concurrency changes to throttleWithTimeout
returncreate(OperationThrottleFirst.throttleFirst(this, skipDuration, unit, scheduler));
1875
1878
}
1876
-
1877
-
1879
+
1878
1880
/**
1879
-
* Throttles the {@link Observable} by dropping values which are followed by newer values before the timer has expired.
1880
-
*
1881
-
* @param timeout
1882
-
* The time each value has to be 'the most recent' of the {@link Observable} to ensure that it's not dropped.
1881
+
* Throttles by returning the last value of each interval defined by 'intervalDuration'.
1882
+
* <p>
1883
+
* This differs from {@link #throttleFirst} in that this ticks along at a scheduled interval whereas {@link #throttleFirst} does not tick, it just tracks passage of time.
1883
1884
*
1885
+
* @param intervalDuration
1886
+
* Duration of windows within with the last value will be chosen.
1884
1887
* @param unit
1885
-
* The {@link TimeUnit} for the timeout.
1886
-
*
1887
-
* @return An {@link Observable} which filters out values which are too quickly followed up with newer values.
1888
+
* The unit of time for the specified interval.
1889
+
* @return Observable which performs the throttle operation.
* Throttles the {@link Observable} by dropping values which are followed by newer values before the timer has expired.
1897
+
* Throttles by returning the last value of each interval defined by 'intervalDuration'.
1898
+
* <p>
1899
+
* This differs from {@link #throttleFirst} in that this ticks along at a scheduled interval whereas {@link #throttleFirst} does not tick, it just tracks passage of time.
1895
1900
*
1896
-
* @param timeout
1897
-
* The time each value has to be 'the most recent' of the {@link Observable} to ensure that it's not dropped.
1901
+
* @param intervalDuration
1902
+
* Duration of windows within with the last value will be chosen.
1898
1903
* @param unit
1899
-
* The {@link TimeUnit} for the timeout.
1900
-
* @param scheduler
1901
-
* The {@link Scheduler} to use when timing incoming values.
1902
-
* @return An {@link Observable} which filters out values which are too quickly followed up with newer values.
1904
+
* The unit of time for the specified interval.
1905
+
* @return Observable which performs the throttle operation.
0 commit comments