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
Resolve with the given value after the given time.
<script type="module">
import chengchengwDelay from 'https://cdn.skypack.dev/@chengchengw/delay';
</script>
@chengchengw/delayResolve with the given value after the given time.
import delay from '@chengchengw/delay';
delay(1000, 'Hello World').then(console.info);
// => "Hello World" after 1000ms