3d-tiles-renderer
Version:
https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification
18 lines (12 loc) • 416 B
TypeScript
export class PriorityQueue {
maxJobs : number;
autoUpdate : boolean;
priorityCallback : ( itemA : any, itemB : any ) => number;
schedulingCallback : ( func : Function ) => void;
sort() : void;
add( item : any, callback : ( item : any ) => any ) : Promise< any >;
remove( item : any ) : void;
removeByFilter( filter : ( item : any ) => boolean ) : void;
tryRunJobs() : void;
scheduleJobRun() : void;
}