System.Threading.Tasks.TpScheduler.TryExecuteTaskInline C# (CSharp) Method

TryExecuteTaskInline() protected method

protected TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task
taskWasPreviouslyQueued bool
return bool
        protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
        {
            if (taskWasPreviouslyQueued && !TryDequeue (task))
                return false;

            return TryExecuteTask(task);
        }