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

Method flushSync

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

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

()

Source from the content-addressed store, hash-verified

417 * If there is a pending sync, abort it and sync immediately.
418 */
419 flushSync() {
420 const pending = this.pendingSync();
421 if (pending && !pending.signal.aborted) {
422 pending.abort();
423 this.sync();
424 }
425 }
426
427 /**
428 * Initiates a debounced {@link sync}.

Callers 2

markAsTouchedInternalMethod · 0.95
registerAsBindingMethod · 0.80

Calls 2

syncMethod · 0.95
abortMethod · 0.65

Tested by

no test coverage detected