ConcurrencyLimiterTryExecuteTaskInline Method

Determines whether the provided Task can be executed synchronously in this call, and if it can, executes it.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
protected override bool TryExecuteTaskInline(
	Task task,
	bool taskWasPreviouslyQueued
)

Parameters

task  Task
The Task to be executed.
taskWasPreviouslyQueued  Boolean
A Boolean denoting whether or not task has previously been queued. If this parameter is True, then the task may have been previously queued (scheduled); if False, then the task is known not to have been queued, and this call is being made in order to execute the task inline without queuing it.

Return Value

Boolean
A Boolean value indicating whether the task was executed inline.

See Also