PriorityQueue.d.ts 356 B

12345678910111213141516
  1. export class PriorityQueue {
  2. maxJobs : Number;
  3. autoUpdate : Boolean;
  4. priorityCallback : ( itemA : any , itemB : any ) => Number;
  5. schedulingCallback : ( func : Function ) => void;
  6. sort() : void;
  7. add( item : any, callback : ( item : any ) => any ) : Promise< any >;
  8. remove( item : any ) : void;
  9. tryRunJobs() : void;
  10. scheduleJobRun() : void;
  11. }