function queueMicrotask

Supported only in the v8 engine. Introduced in Max v9.2.0.

Queues a microtask to run after the current task completes and before the next timer callback.

export declare function queueMicrotask(callback: () => void): void;
NameTypeDescription
callback() => voidthe microtask function to run