delay2

1.0.2 • Public • Published

https://twitter.com/rakesh314/status/931504992330047489

Install:

npm install delay2

Usage:

await delay(1000); // wait a sec
... // continue

With promises: Get with the times. Alternatively,

delay(1000).then(whatever);

Node 4+ needed (needs native promise support).

License: wut?

/delay2/

    Package Sidebar

    Install

    npm i delay2

    Weekly Downloads

    20

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • rakeshpai