1.0.0 • Published 8 years ago
async-msleep v1.0.0
async-msleep
Async msleep.
Installation
npm install --save async-msleepUsage
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
8 years ago