ProcessingQueue.QueueForExecution Method

Definition

Overloads

QueueForExecution(Action)

Executes processing synchronously, with no exclusive actions running.

QueueForExecution<T>(Func<T>, T)

Executes execute synchronously without any exclusive tasks running, returning its result via result.

QueueForExecution(Action)

Executes processing synchronously, with no exclusive actions running.

public void QueueForExecution (Action processing);
member this.QueueForExecution : Action -> unit
Public Sub QueueForExecution (processing As Action)

Parameters

processing
Action

Remarks

Uses the set exception logger to log any exception that occurs during execution.

NOTE: may deadlock if processing calls this processing queue.

Applies to

QueueForExecution<T>(Func<T>, T)

Executes execute synchronously without any exclusive tasks running, returning its result via result.

public bool QueueForExecution<T> (Func<T> execute, out T result);
member this.QueueForExecution : Func<'T> * 'T -> bool
Public Function QueueForExecution(Of T) (execute As Func(Of T), ByRef result As T) As Boolean

Type Parameters

T

Parameters

execute
Func<T>
result
T

Returns

Boolean

True if the execution succeeded without throwing an exception, and false otherwise.

Remarks

Uses the set exception logger to log any exception that occurs during execution.

NOTE: may deadlock if execute calls this processing queue.

Applies to