()
| 61 | const handle: Handle = { value: 0 }; |
| 62 | |
| 63 | function loop(): number | void { |
| 64 | const current = new Date().getTime(); |
| 65 | |
| 66 | const delta = current - start; |
| 67 | |
| 68 | if (delta >= delay) { |
| 69 | fn.call(null); |
| 70 | } else { |
| 71 | handle.value = requestAnimFrame(loop); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | handle.value = requestAnimFrame(loop); |
| 76 | return handle; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…