Utilização

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');

Assinaturas

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

Parâmetros

NomeTipoObrigatórioDescrição
callback() => voidSim—

Devolve

void

Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.