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
/**
* Create a Mono which delays an onNext signal by a given {@link Duration duration}
* on a default Scheduler and completes.
* If the demand cannot be produced in time, an onError will be signalled instead.
* The delay is introduced through the {@link Schedulers#parallel() parallel} default Scheduler.
*
* <p>
* <img class="marble" src="doc-files/marbles/delay.svg" alt="">
* <p>
* @param duration the duration of the delay
*
* @return a new {@link Mono}
*/
public static Mono<Long> delay(Duration duration) {
return delay(duration, Schedulers.parallel());
}
/**
* Create a {@link Flux} that emits long values starting with 0 and incrementing at
* specified time intervals on the global timer. The first element is emitted after
* an initial delay equal to the {@code period}. If demand is not produced in time,
* an onError will be signalled with an {@link Exceptions#isOverflow(Throwable) overflow}
* {@code IllegalStateException} detailing the tick that couldn't be emitted.
* In normal conditions, the {@link Flux} will never complete.
* <p>
* Runs on the {@link Schedulers#parallel()} Scheduler.
* <p>
* <img class="marble" src="doc-files/marbles/interval.svg" alt="">
*
* @param period the period {@link Duration} between each increment
* @return a new {@link Flux} emitting increasing numbers at regular intervals
*/
public static Flux<Long> interval(Duration period) {
return interval(period, Schedulers.parallel());
}
The text was updated successfully, but these errors were encountered:
Update reactor delay and interval
pinpoint.config
Reactor Mono/Flux delay and interval API
The text was updated successfully, but these errors were encountered: