src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.ERROR)
    @SchedulerSupport(SchedulerSupport.COMPUTATION)
    public static Flowable<Long> interval(long period, TimeUnit unit) {
        return interval(period, period, unit, Schedulers.computation());
    }
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.ERROR)
    @SchedulerSupport(SchedulerSupport.COMPUTATION)
    public static Flowable<Long> interval(long period, TimeUnit unit) {
        return interval(period, period, unit, Schedulers.computation());
    }
@ CheckReturnValue @ BackpressureSupport ( BackpressureKind . ERROR ) @ SchedulerSupport ( SchedulerSupport . COMPUTATION ) public static Flowable < Long > interval ( long period , TimeUnit unit ) { return interval ( period , period , unit , Schedulers . computation ( ) ) ; }
Returns a Flowable that emits a sequential number every specified interval of time.
<p>
<img width="640" height="195" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/interval.png" alt="">
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator signals a {@code MissingBackpressureException} if the downstream
is not ready to receive the next value.</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code interval} operates by default on the {@code computation} {@link Scheduler}.</dd>
</dl>

@param period
the period size in time units (see below)
@param unit
time units to use for the interval size
@return a Flowable that emits a sequential number each time interval
@see <a href="http://reactivex.io/documentation/operators/interval.html">ReactiveX operators documentation: Interval</a>
Returns a Flowable that emits a sequential number every specified interval of time . <p > <img width = 640 height = 195 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / interval . png alt = > <dl > <dt > <b > Backpressure : < / b > < / dt > <dd > The operator signals a { @code MissingBackpressureException } if the downstream is not ready to receive the next value . < / dd > <dt > <b > Scheduler : < / b > < / dt > <dd > { @code interval } operates by default on the { @code computation } { @link Scheduler } . < / dd > < / dl >