mirror of
https://github.com/flynx/pWiki.git
synced 2026-08-24 00:06:43 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2fc3a7cc12
commit
47e96df6ac
@ -648,12 +648,18 @@ module.BaseParser = {
|
|||||||
|
|
||||||
// call macro...
|
// call macro...
|
||||||
var res = that.callMacro(page, name, args, body, state)
|
var res = that.callMacro(page, name, args, body, state)
|
||||||
|
|
||||||
// async...
|
// async...
|
||||||
if(res instanceof Promise){
|
if(res instanceof Promise){
|
||||||
|
elem.resolving = res
|
||||||
|
|
||||||
let all, nested
|
let all, nested
|
||||||
|
// XXX if res is not started yet and it has not yet
|
||||||
|
// started waiting for .waitAll this can be a
|
||||||
|
// condition for a dead lock:
|
||||||
|
// res -> .waitAll -> res
|
||||||
all = state.waitAll =
|
all = state.waitAll =
|
||||||
Promise.all([state.waitAll, res])
|
Promise.all([state.waitAll, res])
|
||||||
elem.resolving = res
|
|
||||||
// XXX do we need to wait till the last .waitNested is
|
// XXX do we need to wait till the last .waitNested is
|
||||||
// resolved?
|
// resolved?
|
||||||
// ...should it's handlers complete??
|
// ...should it's handlers complete??
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user