Actually pass through wait
This commit is contained in:
parent
dd79430e42
commit
03790b46b5
1 changed files with 13 additions and 10 deletions
|
|
@ -561,7 +561,8 @@ function createReplica(path, afterMap = false) {
|
|||
})
|
||||
},
|
||||
specialOnce(cb, _wait = 1000) {
|
||||
this.once((data, key) => {
|
||||
this.once(
|
||||
(data, key) => {
|
||||
if (isPopulated(data) || _wait > 100000) {
|
||||
cb(data, key)
|
||||
} else {
|
||||
|
|
@ -570,7 +571,9 @@ function createReplica(path, afterMap = false) {
|
|||
this.specialOnce(cb, _wait * 3)
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
{ wait: _wait }
|
||||
)
|
||||
return this
|
||||
},
|
||||
specialThen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue