Exemplo n.º 1
0
 private void InvokePendingOperations()
 {
     while (_operations.Count > 0)
     {
         AsyncOperation operation = _operations.Poll();
         operation.Invoke();
     }
 }
Exemplo n.º 2
0
 private void InvokePendingOperations()
 {
     while (_operations.Count > 0)
     {
         AsyncOperation operation = (AsyncOperation)_operations.Dequeue();
         operation.Invoke();
     }
 }