| 2 | type EventFunction = (() => void) | (() => Promise<any>) | Promise<any>; |
| 3 | |
| 4 | interface IEventQueue { |
| 5 | push(event: EventFunction, returnPromise?: boolean): Promise<void> | void; |
| 6 | } |
| 7 | |
| 8 | /** Executes a queue of asynchronous functions, one at a time. */ |
| 9 | export class EventQueue implements IEventQueue { |
no outgoing calls
no test coverage detected