I have three functions. The calling hierarchy is like this:
function a() { b(); c(); } function b() { d(); } What I want is to finish b then continue doing c. But d is asynchronous. I don't have rights to change anything in b and d. Is there any way to handle this case? Sorry for my English.
d()take in a callback function? Doesd()return a promise that you can chain to?callbacksor preferred optionpromisedis async, I can tell that almost async functions take callback function. If you can tell whatddoes, it'd be easier to help.