async-msleep

1.0.0 • Public • Published

async-msleep

Travis CI

Async msleep.

Installation

npm install --save async-msleep

Usage

Useful for moving non-essential computation to the next event loop (tracking, ...).

async function foo() {
  await msleep(0) // Same as setTimeout(foo, 0), but using async/await
}

Reference


caiogondim.com  ·  GitHub @caiogondim  ·  Twitter @caio_gondim

Package Sidebar

Install

npm i async-msleep

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.63 kB

Total Files

5

Last publish

Collaborators

  • caiogondim