Verwendung

Defer a small follow-up until the current synchronous work finishes.

tsx
// Defer a small follow-up until the current synchronous work finishes.
const events: string[] = [];
queueMicrotask(() => console.log(events.join(', ')));
events.push('saved');
events.push('closed');

Signaturen

ts
(callback: () => void): void

Parameter

NameTypErforderlichBeschreibung
callback() => voidJa—

Rückgabe

void

Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.