Usage

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

Signatures

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

Parameters

NameTypeRequiredDescription
callback() => voidYes—

Returns

void

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.