pause

pauses queue execution for a specific amount of time

Usage

1
client.pause(milliseconds).then(callback);

Parameters

Param Type Details
milliseconds Number time in ms

Example

pause.js
1
2
3
4
5
6
7
8
var starttime = new Date().getTime();

client
.pause(3000)
.call(function() {
var endtime = new Date().getTime();
console.log(endtime - starttime); // outputs: 3000
})