- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
21 lines
479 B
TypeScript
21 lines
479 B
TypeScript
export interface DelayQueueOptions {
|
|
callback?: Function;
|
|
timeout: number;
|
|
}
|
|
/**
|
|
* Queue that runs items after specified duration
|
|
*/
|
|
export default class DelayQueue {
|
|
private queues;
|
|
private timeouts;
|
|
/**
|
|
* Add a new item to the queue
|
|
*
|
|
* @param bucket bucket name
|
|
* @param item function that will run later
|
|
* @param options
|
|
*/
|
|
push(bucket: string, item: Function, options: DelayQueueOptions): void;
|
|
private execute;
|
|
}
|