| 2 | * A queue abstraction for tasks that may require a delayed execution |
| 3 | */ |
| 4 | export interface Queue { |
| 5 | /** |
| 6 | * Run a task once the queue is cleared |
| 7 | * @param f A function that will be executed once the queue is useable |
| 8 | * @return A promise that wraps the value returned by f |
| 9 | */ |
| 10 | queue<T>(f: () => Promise<T>): Promise<T>; |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * A sized queue that adds a delay between the end of an item's execution. |
no outgoing calls
no test coverage detected
searching dependent graphs…