Microtask

Report a typo

Which are proper ways to create a microtask?

A)

setTimeout(() => func());

B)

Promise.resolve().then(() => func());

C)

queueMicrotask(() => func());

D)

setMicrotask(() => func());
Select one or more options from the list
___

Create a free account to access the full topic