simplify sleep code
This commit is contained in:
parent
221063e62b
commit
626fbe4276
1 changed files with 2 additions and 5 deletions
|
@ -119,11 +119,8 @@ define(function (require) {
|
||||||
},
|
},
|
||||||
|
|
||||||
sleep: function sleep(sleepMilliseconds) {
|
sleep: function sleep(sleepMilliseconds) {
|
||||||
var self = this;
|
this.debug('sleeping for ' + sleepMilliseconds + 'ms');
|
||||||
self.debug('... sleep(' + sleepMilliseconds + ') start');
|
return Promise.resolve().delay(sleepMilliseconds);
|
||||||
|
|
||||||
return Promise.resolve().delay(sleepMilliseconds)
|
|
||||||
.then(function () { self.debug('... sleep(' + sleepMilliseconds + ') end'); });
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleError: function (testObj) {
|
handleError: function (testObj) {
|
||||||
|
|
Loading…
Reference in a new issue