1.1.2 • Published 4 years ago

@sprnz/wait v1.1.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

@sprnz/wait

Wait a specified number of seconds before resolving.

Usage

import wait from '@sprnz/wait';

(async function() {
  const ms = await wait(500); // will resolve after 500ms
  console.log(ms); // 500

  const value = await wait(200, 'Hello'); // will resolve after 200ms
  console.log(value); // 'Hello'
})();
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago