ProcessingQueue.QueueForExecution Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| QueueForExecution(Action) |
Executes |
| QueueForExecution<T>(Func<T>, T) |
Executes |
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
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.