PriorityQueue.d.ts 288 B

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