UNPKG

@acutmore/rxjs

Version:

Reactive Extensions for modern JavaScript

16 lines 474 B
// v4-backwards-compatibility import { Action } from './Action'; export class ImmediateAction extends Action { constructor(scheduler, work) { super(scheduler, work); this.work = work; } schedule(state, delay = 0) { if (delay !== 0) { throw new Error('Only delays of 0 can be scheduled on the Rx.immediate scheduler'); } this.work(state); return this; } } //# sourceMappingURL=ImmediateAction.js.map