coming out of callback function.

  • Thread starter Thread starter trialproduct2004
  • Start date Start date
T

trialproduct2004

hi all
i am having application containing call back function which is getting
invoked asynchronously.
how can i check whether call back has completed or not.
please help me.
thanks in advance.
 
Well, if you are the one that is making the callbacks, then you should
know when the calls are complete (don't fire them asynchronously, or control
the asynchronous process so that you can know when the callbacks end).

If you are not the one in charge of making the callbacks, then it is
virtually impossible if that mechanism is not provided for you already. The
reason being that you can't control the ordering of the callbacks
(generally), so you never know if you are the last one or not.

Hope this helps.
 
i am having application containing call back function which is getting
invoked asynchronously.
how can i check whether call back has completed or not.
please help me.
thanks in advance.

If the call is invoked asynchronously in one of the ways which returns
an IAsyncResult, you can check the IsCompleted property.
 
Back
Top