6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
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;
|
|
}
|