0.2.8 • Published 3 years ago

@highoutput/delay v0.2.8

Weekly downloads
281
License
MIT
Repository
-
Last release
3 years ago

@highoutput/delay

delay(duration)

  • duration (number|string) Amount of time to wait
  • Returns: (Promise)

Wait for a given amount of time. The input can be a string compatible to the ms module.

Examples

import { delay } from 'highoutput-utilities';

async function main() {
  await delay(1000); // wait for 1 second

  await delay('1m'); // wait for 1 minute
}

main();
0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago