Stop.js
The Promise based setTimeout
and setImmediate
for the modern browsers and node.
‼️Important
stop.js
change to use milliseconds
as default unit. #1
Browser Supported
Why
In ES7 async
/await
is awesome, but that only supported with Promise.
Installation
npm i --save stopjs
Includes babel-polyfill
before use async
and await
Before
console
After
{ console await console // slow than 5 secs}
setImmediate
0
is default, it'll call the YuzuJS/setImmediate
library
console
same as
consoleawait console
or pass nothing
consoleawait console