gulp-wait
A gulp task that inserts a delay before calling the next function in a chain.
Example
Time based delay
Waits a specified number of milliseconds before executing the next item in the chain.
var wait = ; gulp;
Callback based delay
Waits for a callback to be truthy before executing the next item in the chain.
var wait = ; var fs = ; { try fs; return true; catch return false; } gulp;
Using an options object
You can pass in an options object as well.
const options = time: 100 // same as wait(100) true // same as wait(() => true) - defaults to callback if both time and callback are passed {} {}; gulp;