delay-date
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

delay-date Travis CI Build Status

Delay a promise until a specified date.

NPM Badge

Install

npm install delay-date

Usage

const addTime = require("add-time");
const delayDate = require("delay-date");

bar();

await delayDate(addTime.now({ seconds: 1 }));

// Executed a second later
baz();

API

delayDate(date)

date

Type: Date | string | number

The date to wait for.

Package Sidebar

Install

npm i delay-date

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.05 kB

Total Files

6

Last publish

Collaborators

  • richienb