I found an example for loading async ftp on msdn that does the following (snippet):
request.BeginGetRequestStream(
new AsyncCallback (EndGetStreamCallback),
state
);
waitObject.WaitOne();
What I don't understand here is what IO asynchronous input does if the thread is blocked anyway with an explicit waithandle. I have always believed that the advantage of asynchronous I / O is that the user / program does not need to wait.
source
share