src/main/java/io/reactivex/Observable.java
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.COMPUTATION)
    public static Observable<Long> interval(long period, TimeUnit unit) {
        return interval(period, period, unit, Schedulers.computation());
    }
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.COMPUTATION)
    public static Observable<Long> interval(long period, TimeUnit unit) {
        return interval(period, period, unit, Schedulers.computation());
    }
@ CheckReturnValue @ SchedulerSupport ( SchedulerSupport . COMPUTATION ) public static Observable < Long > interval ( long period , TimeUnit unit ) { return interval ( period , period , unit , Schedulers . computation ( ) ) ; }
Returns an Observable 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>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 an Observable that emits a sequential number each time interval
@see <a href="http://reactivex.io/documentation/operators/interval.html">ReactiveX operators documentation: Interval</a>
Returns an Observable 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 > Scheduler : < / b > < / dt > <dd > { @code interval } operates by default on the { @code computation } { @link Scheduler } . < / dd > < / dl >