dormant

resolve after a delay

Usage no npm install needed!

<script type="module">
  import dormant from 'https://cdn.skypack.dev/dormant';
</script>

README

dormant

Install

From NPM:
npm install dormant

From GitHub (latest):
npm install xist/dormant

Example

// in your async function
await dormant(1000);

Contribute

Pull requests are encouraged.