Class SingleTimeInterval<T>

  • Type Parameters:
    T - the element type of the sequence
    All Implemented Interfaces:
    SingleSource<Timed<T>>

    public final class SingleTimeInterval<T>
    extends Single<Timed<T>>
    Measures the time between subscription and the success item emission from the upstream and emits this as a Timed success value.
    Since:
    3.0.0
    • Field Detail

      • unit

        final java.util.concurrent.TimeUnit unit
      • start

        final boolean start
    • Constructor Detail

      • SingleTimeInterval

        public SingleTimeInterval​(SingleSource<T> source,
                                  java.util.concurrent.TimeUnit unit,
                                  Scheduler scheduler,
                                  boolean start)