/** * Delay the emission of the terminal events of this Nono * by the given time amount. * @param delay the delay amount * @param unit the time unit * @param scheduler the scheduler to wait on * @return the new Nono instance */ @SchedulerSupport(SchedulerSupport.CUSTOM) public final Nono delay(long delay, TimeUnit unit, Scheduler scheduler) { ObjectHelper.requireNonNull(unit, "unit is null"); ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return onAssembly(new NonoDelay(this, delay, unit, scheduler)); }
/** * Delay the emission of the terminal events of this Nono * by the given time amount. * @param delay the delay amount * @param unit the time unit * @param scheduler the scheduler to wait on * @return the new Nono instance */ @SchedulerSupport(SchedulerSupport.CUSTOM) public final Nono delay(long delay, TimeUnit unit, Scheduler scheduler) { ObjectHelper.requireNonNull(unit, "unit is null"); ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return onAssembly(new NonoDelay(this, delay, unit, scheduler)); }