0
Answer

Multiple Async Callbacks

Ask a question
sailorfoley

sailorfoley

19y
1.9k
1
Hey all, if i have multiple async calls (e.g. 3) and i need to proceed through my application based on their return values; what is the best way to implement this? I have 3 boolean values and make each async call change a different boolean value to true upon callback. When all 3 boolean values are true i check the async return values and proceed. This seems a little long winded. Does anyone have a better approach? Any ideas would be appreciated. Thanks, Clive.