Skip to content

Commit

Permalink
feat(reorganize): export schedulers from rxjs
Browse files Browse the repository at this point in the history
- Exports schedulers as `asapScheduler`, `asyncScheduler`, `queueScheduler` and `animationFrameScheduler`

BREAKING CHANGE: Scheduler instances have changed names to be suffixed with `Scheduler`, (e.g. `asap` -> `asapScheduler`)
  • Loading branch information
benlesh committed Jan 12, 2018
1 parent bd683ca commit abd3b61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/index-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit abd3b61

Please sign in to comment.