import {Action} from './Action'; import {AsapAction} from './AsapAction'; import {Subscription} from '../Subscription'; import {QueueScheduler} from './QueueScheduler'; export class AsapScheduler extends QueueScheduler { scheduleNow(work: (x?: T) => Subscription, state?: T): Action { return new AsapAction(this, work).schedule(state); } }