| 188 | } |
| 189 | |
| 190 | interface Queue<T extends Function = any> { |
| 191 | add: (fn: T) => void |
| 192 | delete: (fn: T) => boolean |
| 193 | flush: (arg?: any) => void |
| 194 | } |
| 195 | |
| 196 | function makeQueue<T extends Function>(): Queue<T> { |
| 197 | let next = new Set<T>() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…