Jellyfish.Commands.BulkheadTaskScheduler.TryExecuteTaskInline C# (CSharp) Method

TryExecuteTaskInline() protected method

Tries to execute a task synchronously on the current thread.
protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task The task to execute.
taskWasPreviouslyQueued bool Whether the task was previously queued.
return bool
        protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
        {
            // If we're already running tasks on this threads, enable inlining 
            return _taskProcessingThread.Value && TryExecuteTask(task);
        }