(task: Task)
| 54 | } |
| 55 | |
| 56 | function add(task: Task) { |
| 57 | tasks.push(task); |
| 58 | if (!frameId) { |
| 59 | frameId = requestAnimationFrame(runTasks); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function cancel() { |
| 64 | tasks.splice(0); |
nothing calls this directly
no outgoing calls
no test coverage detected