|
|
|
|
|
by tangent128
1567 days ago
|
|
If you want your function to block until the promise resolves, then the function calling it also has to block, and the function calling that has to block, and so forth. At the top of the chain, this ultimately blocks the entire event loop (Javascript semantics are generally not concurrent), so no UI/network events can be processed until that promise resolves and the page/server is left non-responsive. (And that's assuming you can somehow define clear semantics to run any Javascript code involved in resolving the promise; otherwise, you're deadlocked!) |
|