private void FaultWithTask(Task faultedTask)
 {
     ConcurrentExclusiveSchedulerPair.CompletionState completionState = this.EnsureCompletionStateInitialized();
     if (completionState.m_exceptions == null)
     {
         completionState.m_exceptions = new List <Exception>();
     }
     completionState.m_exceptions.AddRange((IEnumerable <Exception>)faultedTask.Exception.InnerExceptions);
     this.RequestCompletion();
 }
 // Token: 0x06004136 RID: 16694 RVA: 0x000F2454 File Offset: 0x000F0654
 private void CompleteTaskAsync()
 {
     ConcurrentExclusiveSchedulerPair.CompletionState completionState = this.EnsureCompletionStateInitialized();
     if (!completionState.m_completionQueued)
     {
         completionState.m_completionQueued = true;
         ThreadPool.QueueUserWorkItem(delegate(object state)
         {
             ConcurrentExclusiveSchedulerPair.CompletionState completionState2 = (ConcurrentExclusiveSchedulerPair.CompletionState)state;
             List <Exception> exceptions = completionState2.m_exceptions;
             if (exceptions == null || exceptions.Count <= 0)
             {
                 completionState2.TrySetResult(default(VoidTaskResult));
             }
             else
             {
                 completionState2.TrySetException(exceptions);
             }
         }, completionState);
     }
 }
 private void CompleteTaskAsync()
 {
     ConcurrentExclusiveSchedulerPair.CompletionState completionState1 = this.EnsureCompletionStateInitialized();
     if (completionState1.m_completionQueued)
     {
         return;
     }
     completionState1.m_completionQueued = true;
     ThreadPool.QueueUserWorkItem((WaitCallback)(state =>
     {
         ConcurrentExclusiveSchedulerPair.CompletionState completionState2 = (ConcurrentExclusiveSchedulerPair.CompletionState)state;
         List <Exception> exceptionList = completionState2.m_exceptions;
         if (exceptionList == null || exceptionList.Count <= 0)
         {
             completionState2.TrySetResult(new VoidTaskResult());
         }
         else
         {
             completionState2.TrySetException((IEnumerable <Exception>)exceptionList);
         }
     }), (object)completionState1);
 }