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