queueJob.d.ts 654 B

1234567891011121314151617181920212223242526272829
  1. export declare class JobQueue {
  2. private isFlushing;
  3. private isFlushPending;
  4. private scheduleId;
  5. private queue;
  6. private frameInterval;
  7. private initialTime;
  8. queueJob(job: Job): void;
  9. queueFlush(): void;
  10. queueFlushSync(): void;
  11. clearJobs(): void;
  12. flushJobs(): void;
  13. flushJobsSync(): void;
  14. private findInsertionIndex;
  15. private scheduleJob;
  16. private cancelScheduleJob;
  17. private getCurrentTime;
  18. }
  19. export interface Job {
  20. id: string;
  21. priority: JOB_PRIORITY;
  22. cb: () => void;
  23. }
  24. export declare enum JOB_PRIORITY {
  25. Update = 2,
  26. RenderEdge = 4,
  27. RenderNode = 8,
  28. PRIOR = 1048576
  29. }