(callback)
| 56 | this.#timer = undefined; |
| 57 | } |
| 58 | getTime(callback) { |
| 59 | if (undefined !== this.#callback) |
| 60 | throw new Error("in use"); |
| 61 | |
| 62 | this.#callback = callback; |
| 63 | this.#index = 0; |
| 64 | this.#retry = 0; |
| 65 | this.#address = undefined; |
| 66 | |
| 67 | this.#next(); |
| 68 | } |
| 69 | #next() { |
| 70 | if (this.#address) { |
| 71 | if (this.#retry++ < 5) { |
no test coverage detected