Detecting that a ThreadPool WorkItem has completed/waiting for completion

后端 未结 2 1472
终归单人心
终归单人心 2021-01-06 08:48

For whatever reason, ThreadPool\'s QueueWorkItem doesn\'t return an IAsyncResult or some other handle to the work item, which would al

2条回答
  •  佛祖请我去吃肉
    2021-01-06 09:15

    Why aren't you using an asynchronous delegate, as demostrated here:

    http://msdn.microsoft.com/en-us/library/h80ttd5f.aspx

    That would make Concurrent obsolete, no?

提交回复
热议问题