microtask

microtask() is Promise.resolve() — await it to yield to the microtask queue. For a macrotask see macrotask. Part of pota/use/test.

Arguments

Takes no arguments.

Returns: Promise<void> that resolves on the next microtask.