IAsyncResult.AsyncWaitHandle - when is it signaled?

  • Thread starter Thread starter David
  • Start date Start date
D

David

If I were to call an async beginxxx method that returns an IAsyncResult when
exactly would the AsyncWaitHandle be signaled? Before or after the
corresponding endxxx method completes? Immediately after?
 
If I were to call an async beginxxx method that returns an IAsyncResult when
exactly would the AsyncWaitHandle be signaled? Before or after the
corresponding endxxx method completes? Immediately after?

All of the EndXXX methods I've worked with block if the operation is
still pending. In those cases the WaitHandle is signaled prior to
completion and often time before EndXXX is even called.
 
OK, thanks.

Brian Gideon said:
All of the EndXXX methods I've worked with block if the operation is
still pending. In those cases the WaitHandle is signaled prior to
completion and often time before EndXXX is even called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top