@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
@chengchengw/delay
Resolve with the given value after the given time.
import delay from '@chengchengw/delay';
delay(1000, 'Hello World').then(console.info);
// => "Hello World" after 1000ms
npm i @chengchengw/delay
0
1.0.3
ISC
9.78 kB
11