flush-microtasks
v1.0.1
Published
Flush the microtask queue
Downloads
864
Readme
flush-microtasks
Return a thenable that resolves when the microtask queue is empty.
Taken from enqueueTask.js in React.
import { flushMicroTasks } from 'flush-microtasks'
await flushMicroTasks()