PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
internal
/
observable
import { Observable } from '../Observable'; import { SchedulerLike } from '../types'; /** * Creates an Observable that starts emitting after an `dueTime` and * emits ever increasing numbers after each `period` of time thereafter. * * <span class="informal">Its like {@link index/interval}, but you can specify when * should the emissions start.</span> * *  * * `timer` returns an Observable that emits an infinite sequence of ascending * integers, with a constant interval of time, `period` of your choosing * between those emissions. The first emission happens after the specified * `dueTime`. The initial delay may be a `Date`. By default, this * operator uses the {@link asyncScheduler} {@link SchedulerLike} to provide a notion of time, but you * may pass any {@link SchedulerLike} to it. If `period` is not specified, the output * Observable emits only one value, `0`. Otherwise, it emits an infinite * sequence. * * ## Examples * ### Emits ascending numbers, one every second (1000ms), starting after 3 seconds * ```ts * import { timer } from 'rxjs'; * * const numbers = timer(3000, 1000); * numbers.subscribe(x => console.log(x)); * ``` * * ### Emits one number after five seconds * ```ts * import { timer } from 'rxjs'; * * const numbers = timer(5000); * numbers.subscribe(x => console.log(x)); * ``` * @see {@link index/interval} * @see {@link delay} * * @param {number|Date} [dueTime] The initial delay time specified as a Date object or as an integer denoting * milliseconds to wait before emitting the first value of 0`. * @param {number|SchedulerLike} [periodOrScheduler] The period of time between emissions of the * subsequent numbers. * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling * the emission of values, and providing a notion of "time". * @return {Observable} An Observable that emits a `0` after the * `dueTime` and ever increasing numbers after each `period` of time * thereafter. * @static true * @name timer * @owner Observable */ export declare function timer(dueTime?: number | Date, periodOrScheduler?: number | SchedulerLike, scheduler?: SchedulerLike): Observable<number>;
[-] race.d.ts
[edit]
[-] using.d.ts
[edit]
[-] zip.js.map
[edit]
[-] bindNodeCallback.d.ts
[edit]
[-] concat.js
[edit]
[-] fromEventPattern.js
[edit]
[-] combineLatest.js
[edit]
[-] using.js
[edit]
[-] fromArray.js.map
[edit]
[-] merge.d.ts
[edit]
[-] timer.d.ts
[edit]
[-] generate.js
[edit]
[-] generate.js.map
[edit]
[+]
dom
[+]
..
[-] defer.js
[edit]
[-] ConnectableObservable.d.ts
[edit]
[-] ConnectableObservable.js
[edit]
[-] SubscribeOnObservable.d.ts
[edit]
[-] concat.js.map
[edit]
[-] iif.d.ts
[edit]
[-] from.js.map
[edit]
[-] fromPromise.d.ts
[edit]
[-] range.js.map
[edit]
[-] partition.d.ts
[edit]
[-] generate.d.ts
[edit]
[-] interval.d.ts
[edit]
[-] merge.js.map
[edit]
[-] bindCallback.js
[edit]
[-] forkJoin.js.map
[edit]
[-] bindNodeCallback.js.map
[edit]
[-] SubscribeOnObservable.js
[edit]
[-] bindCallback.d.ts
[edit]
[-] never.d.ts
[edit]
[-] interval.js
[edit]
[-] fromPromise.js.map
[edit]
[-] empty.d.ts
[edit]
[-] of.js
[edit]
[-] ConnectableObservable.js.map
[edit]
[-] throwError.js.map
[edit]
[-] iif.js
[edit]
[-] timer.js.map
[edit]
[-] merge.js
[edit]
[-] defer.d.ts
[edit]
[-] from.d.ts
[edit]
[-] fromEventPattern.d.ts
[edit]
[-] bindCallback.js.map
[edit]
[-] range.d.ts
[edit]
[-] onErrorResumeNext.js
[edit]
[-] of.d.ts
[edit]
[-] zip.d.ts
[edit]
[-] onErrorResumeNext.js.map
[edit]
[-] partition.js
[edit]
[-] fromIterable.d.ts
[edit]
[-] never.js.map
[edit]
[-] fromPromise.js
[edit]
[-] pairs.js
[edit]
[-] timer.js
[edit]
[-] interval.js.map
[edit]
[-] zip.js
[edit]
[-] iif.js.map
[edit]
[-] fromEvent.d.ts
[edit]
[-] fromArray.js
[edit]
[-] race.js
[edit]
[-] range.js
[edit]
[-] race.js.map
[edit]
[-] forkJoin.js
[edit]
[-] bindNodeCallback.js
[edit]
[-] concat.d.ts
[edit]
[-] combineLatest.d.ts
[edit]
[-] forkJoin.d.ts
[edit]
[-] throwError.d.ts
[edit]
[-] throwError.js
[edit]
[-] fromArray.d.ts
[edit]
[-] onErrorResumeNext.d.ts
[edit]
[-] fromEvent.js
[edit]
[-] empty.js.map
[edit]
[-] defer.js.map
[edit]
[-] SubscribeOnObservable.js.map
[edit]
[-] pairs.d.ts
[edit]
[-] empty.js
[edit]
[-] pairs.js.map
[edit]
[-] fromIterable.js.map
[edit]
[-] never.js
[edit]
[-] fromEventPattern.js.map
[edit]
[-] combineLatest.js.map
[edit]
[-] partition.js.map
[edit]
[-] using.js.map
[edit]
[-] fromEvent.js.map
[edit]
[-] of.js.map
[edit]
[-] from.js
[edit]
[-] fromIterable.js
[edit]