@chengchengw/delay

Resolve with the given value after the given time.

Usage no npm install needed!

<script type="module">
  import chengchengwDelay from 'https://cdn.skypack.dev/@chengchengw/delay';
</script>

README

@chengchengw/delay

Resolve with the given value after the given time.

Usage

import delay from '@chengchengw/delay';


delay(1000, 'Hello World').then(console.info); 
// => "Hello World" after 1000ms