* Creates a debouncer that will wait indefinitely, relying on the node to synchronize pending * updates when blurred.
()
| 85 | * updates when blurred. |
| 86 | */ |
| 87 | function debounceUntilBlur(): Debouncer<unknown> { |
| 88 | return (_context, abortSignal) => { |
| 89 | return new Promise((resolve) => { |
| 90 | abortSignal.addEventListener('abort', () => resolve(), {once: true}); |
| 91 | }); |
| 92 | }; |
| 93 | } |
| 94 | |
| 95 | function immediate(): void {} |
no test coverage detected
searching dependent graphs…