Convert timeout arguments from seconds to microseconds
This commit is contained in:
parent
691817568a
commit
d154f08a50
1 changed files with 2 additions and 2 deletions
|
|
@ -103,8 +103,8 @@ export default new Vuex.Store({
|
||||||
},
|
},
|
||||||
|
|
||||||
pollTask(context, [taskId, timeout, interval]) {
|
pollTask(context, [taskId, timeout, interval]) {
|
||||||
var endTime = Number(new Date()) + (timeout || 30000);
|
var endTime = Number(new Date()) + (timeout*1000 || 30000);
|
||||||
interval = interval || 500;
|
interval = interval*1000 || 500;
|
||||||
|
|
||||||
var checkCondition = function(resolve, reject) {
|
var checkCondition = function(resolve, reject) {
|
||||||
// If the condition is met, we're done!
|
// If the condition is met, we're done!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue