I have some asynchronous API calls. I need to do some work when the calls have finished. I have all my API calls inside a function like that :
function startProcess() {
asyncCall();
}
How do i create a callback function for the startProcess() function , so that i could run some code when the asyncCall has finished?
asyncCallitself can accept a callback or post an even somehow when it finishes.