コード例 #1
0
        void QueueStepOnComplete(IFuture f)
        {
            if (_WakeDiscardingResult && f.Failed)
            {
                Abort(f);
                return;
            }

            if (WakeCondition != null)
            {
                _WakePrevious = WakeCondition;
                WakeCondition = null;
            }

            _Scheduler.QueueWorkItem(_Step);
        }
コード例 #2
0
ファイル: AsyncAwait.cs プロジェクト: sq/Libraries
 public void OnCompleted()
 {
     if (ForNextStep)
     {
         Scheduler.QueueWorkItemForNextStep(Continuation);
     }
     else
     {
         Scheduler.QueueWorkItem(Continuation);
     }
 }
コード例 #3
0
ファイル: CancellationScope.cs プロジェクト: jli94/Fracture
 private void _OnComplete(IFuture f)
 {
     Scheduler.QueueWorkItem(Continuation);
 }
コード例 #4
0
ファイル: TaskScheduler.cs プロジェクト: sq/Libraries
 public override void Post(SendOrPostCallback d, object state)
 {
     Scheduler.QueueWorkItem(new WorkItemQueueEntry {
         Action = d, Arg1 = state
     });
 }
コード例 #5
0
 public override void Post(SendOrPostCallback d, object state)
 {
     Scheduler.QueueWorkItem(() => d(state));
 }