Amib.Threading.Internal.WorkItemsGroup.Cancel C# (CSharp) Метод

Cancel() публичный Метод

public Cancel ( bool abortExecution ) : void
abortExecution bool
Результат void
        public override void Cancel(bool abortExecution)
        {
            lock (_lock)
            {
                _canceledWorkItemsGroup.IsCanceled = true;
                _workItemsQueue.Clear();
                _workItemsInStpQueue = 0;
                _canceledWorkItemsGroup = new CanceledWorkItemsGroup();
            }

            if (abortExecution)
            {
                _stp.CancelAbortWorkItemsGroup(this);
            }
        }