java.lang.Object
io.reactivex.rxjava3.core.Single<Long>
io.reactivex.rxjava3.internal.operators.single.SingleTimer
All Implemented Interfaces:
SingleSource<Long>

public final class SingleTimer extends Single<Long>
Signals a 0L after the specified delay.
  • Field Details

    • delay

      final long delay
    • unit

      final TimeUnit unit
    • scheduler

      final Scheduler scheduler
  • Constructor Details

  • Method Details

    • subscribeActual

      protected void subscribeActual(SingleObserver<? super Long> observer)
      Description copied from class: Single
      Implement this method in subclasses to handle the incoming SingleObservers.

      There is no need to call any of the plugin hooks on the current Single instance or the SingleObserver; all hooks and basic safeguards have been applied by Single.subscribe(SingleObserver) before this method gets called.

      Specified by:
      subscribeActual in class Single<Long>
      Parameters:
      observer - the SingleObserver to handle, not null