How to get notification that a System.Threading.Tasks.Task has completed

前端 未结 6 590
广开言路
广开言路 2020-12-14 15:14

I am currently replacing some home baked task functionality with a new implementation using the new System.Threading.Tasks functionality found in .net 4.

I have a sl

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 15:44

    You can apply a task continuation.

    Alternatively, Task implements IAsyncResult, so you can use the standard approaches for that interface (blocking, polling, or waiting on its WaitHandle).

提交回复
热议问题