MCPcopy Create free account
hub / github.com/angular/angular / debounceUntilBlur

Function debounceUntilBlur

packages/forms/signals/src/api/rules/debounce.ts:88–94  ·  view source on GitHub ↗

* Creates a debouncer that will wait indefinitely, relying on the node to synchronize pending * updates when blurred.

()

Source from the content-addressed store, hash-verified

86 * updates when blurred.
87 */
88function debounceUntilBlur(): Debouncer<unknown> {
89 return (_context, abortSignal) => {
90 return new Promise((resolve) => {
91 abortSignal.addEventListener('abort', () => resolve(), {once: true});
92 });
93 };
94}
95
96function immediate(): void {}

Callers 1

normalizeDebouncerFunction · 0.85

Calls 2

addEventListenerMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected