MCPcopy Index your code
hub / github.com/angular/angular / flushSync

Method flushSync

packages/forms/signals/src/field/node.ts:414–420  ·  view source on GitHub ↗

* If there is a pending sync, abort it and sync immediately.

()

Source from the content-addressed store, hash-verified

412 * If there is a pending sync, abort it and sync immediately.
413 */
414 private flushSync() {
415 const pending = this.pendingSync();
416 if (pending && !pending.signal.aborted) {
417 pending.abort();
418 this.sync();
419 }
420 }
421
422 /**
423 * Initiates a debounced {@link sync}.

Callers 1

markAsTouchedMethod · 0.95

Calls 2

syncMethod · 0.95
abortMethod · 0.65

Tested by

no test coverage detected