I have a function that done some asynch operations :
function funcAsynch() {
// asynch operations
}
well, I’d like calling this function, and declare a callback to execute when all asynch operations are finished.
Somethings like
customCallback(funcAsynch(), function () {
alert("all asynch operations are finished")
});
how can I do it?
Define a parameter for your
funcAsynch()function.And pass the callback function to that parameter.