flush-microtasks
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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()

Readme

Keywords

Package Sidebar

Install

npm i flush-microtasks

Weekly Downloads

48

Version

1.0.1

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • aleclarson