3d-tiles-renderer
Version:
https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification
18 lines (12 loc) • 418 B
TypeScript
export class PriorityQueue {
maxJobs : number;
autoUpdate : boolean;
priorityCallback : ( itemA : any, itemB : any ) => number;
schedulingCallback : ( func : () => void ) => 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;
}