Task<TResult>.ContinueWith Method 命名空间:           System.Threading.Tasks

        Creates a continuation task that executes when another task completes.

      在一个任务结束执行之后,自动创建新的task对象来运行ContinueWith方法指定的操作。

      因此,每次调用ContinueWith方法指定操作的任务“结束之后”都会额外增加一个“ 用于创建task对象的Task”。所以,“不能”使用 Task.CurrentId来对操作的执行次数进行计数。

ContinueWith() (Task类的延续性任务)实例

相关文章: