Do you have to call EndInvoke (or define a callback ) for asynchronous method calls even if you don't have anything to do when it returns

后端 未结 3 564
面向向阳花
面向向阳花 2020-12-06 13:08

I found the following code snippet on CodeProject on calling methods asynchronously at ... http://www.codeproject.com/Articles/14931/Asynchronous-Method-Invocation



        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 13:53

    As a matter of practice, you should call EndInvoke because the caller may have handlers subscribed to the events that may not matter to your processing, but may matter to the consumer so as to ensure certain kinds of processing can take place at a known time/application state.

提交回复
热议问题