diff --git a/src/index.ts b/src/index.ts index 1d145f6d20..49d5534968 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,6 +16,7 @@ export { async as asyncScheduler } from './internal/scheduler/async'; export { queue as queueScheduler } from './internal/scheduler/queue'; export { animationFrame as animationFrameScheduler } from './internal/scheduler/animationFrame'; export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler'; +export { Scheduler } from './internal/Scheduler'; /* Subscription */ export { Subscription } from './internal/Subscription'; @@ -70,4 +71,4 @@ export { NEVER } from './internal/observable/never'; export * from './internal/types'; /* Config */ -export { config } from './internal/config'; \ No newline at end of file +export { config } from './internal/config'; diff --git a/src/internal/Scheduler.ts b/src/internal/Scheduler.ts index 49ae5d00ed..30ca9574d0 100644 --- a/src/internal/Scheduler.ts +++ b/src/internal/Scheduler.ts @@ -17,6 +17,9 @@ import { SchedulerLike, SchedulerAction } from './types'; * ``` * * @class Scheduler + * @deprecated Scheduler is an internal implementation detail of RxJS, and + * should not be used directly. Rather, create your own class and implement + * {@link SchedulerLike} */ export class Scheduler implements SchedulerLike {