我正在努力思考TPL、C#5中新的async/await特性,以及TaskCompletionSource.我不清楚的一件事是何时使用SetResult、SetException和SetCancel与TrySetResult、TrySetException和TrySetCancel。MSDN是这样说的:ThisoperationwillreturnfalseiftheTaskisalreadyinoneofthethreefinalstates:RanToCompletion,Faulted,orCanceled.Thismethodalsoreturnsfalseiftheunder