()
| 108 | let resolvedHookNames: HookNames | null = null; |
| 109 | |
| 110 | const wake = () => { |
| 111 | if (timeoutID) { |
| 112 | clearTimeout(timeoutID); |
| 113 | timeoutID = null; |
| 114 | } |
| 115 | |
| 116 | // This assumes they won't throw. |
| 117 | callbacks.forEach(callback => callback((thenable: any).value)); |
| 118 | callbacks.clear(); |
| 119 | rejectCallbacks.clear(); |
| 120 | }; |
| 121 | const wakeRejections = () => { |
| 122 | if (timeoutID) { |
| 123 | clearTimeout(timeoutID); |
no test coverage detected