From abd3b61ea21e6e29887bbc9b428cce59fadf796b Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Thu, 30 Nov 2017 20:13:56 -0800 Subject: [PATCH] feat(reorganize): export schedulers from `rxjs` - Exports schedulers as `asapScheduler`, `asyncScheduler`, `queueScheduler` and `animationFrameScheduler` BREAKING CHANGE: Scheduler instances have changed names to be suffixed with `Scheduler`, (e.g. `asap` -> `asapScheduler`) --- spec/index-spec.ts | 7 +++++++ src/index.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/spec/index-spec.ts b/spec/index-spec.ts index 5ac2497433..78776badfb 100644 --- a/spec/index-spec.ts +++ b/spec/index-spec.ts @@ -132,4 +132,11 @@ describe('index', () => { expect(index.BehaviorSubject).to.exist; expect(index.ReplaySubject).to.exist; }); + + it('should export the schedulers', () => { + expect(index.asapScheduler).to.exist; + expect(index.asyncScheduler).to.exist; + expect(index.queueScheduler).to.exist; + expect(index.animationFrameScheduler).to.exist; + }); }); diff --git a/src/index.ts b/src/index.ts index 71ae78989a..28c9256dce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -132,3 +132,10 @@ export { zipAll } from './operators/zipAll'; export { Subject } from './Subject'; export { BehaviorSubject } from './BehaviorSubject'; export { ReplaySubject } from './ReplaySubject'; + +/* Schedulers */ + +export { asap as asapScheduler } from './scheduler/asap'; +export { async as asyncScheduler } from './scheduler/async'; +export { queue as queueScheduler } from './scheduler/queue'; +export { animationFrame as animationFrameScheduler } from './scheduler/animationFrame';