You can often think of an AsyncCallback as a Ron Popeil style “Set it and
Forget it” (ie a non blocking call as far as the caller is concerned) that
occurs outside of the thread that it is triggered from, while a regular
event/callback delays execution of the code that triggered the event until
all subscribers have been handled.
If you do not immediately care about the result of a raised event (ie
timing), then often an AsyncCallback can be useful, otherwise, if you require
a response or other things to occur, a more traditional event/callback can be
best.
Brendan
"Lenn" wrote:
Hello,
Could you provide specific examples, when one would want to use
AsyncCallback as opposed to just subscribing to events or passing a delegate
to a function? I realize that AsyncCallback is a delegate type, but when it's
absolutely necessary to use it.
Thanks