async-msleep
v1.0.0
Published
<div> <img src="http://travis-ci.org/caiogondim/async-msleep.svg?branch=master" alt="Travis CI"> </div>
Downloads
23
Maintainers
Readme
async-msleep
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