据我所知,它只知道在某个时候,它的SetResult或SetException正在调用方法来完成Task通过其Task暴露属性(property)。换句话说,它充当Task的生产者及其完成。我看到了here示例:IfIneedawaytoexecuteaFuncasynchronouslyandhaveaTasktorepresentthatoperation.publicstaticTaskRunAsync(Funcfunction){if(function==null)thrownewArgumentNullException(“function”);vartcs=newTaskC