1.0.0 • Published 6 years ago
async-msleep v1.0.0
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
1.0.0
6 years ago