Method Enqueue
Enqueue(Action)
Adds a new
Action to the end of the queue.
Declaration
public Task Enqueue(Action action)
Parameters
| Type |
Name |
Description |
| Action |
action |
The Action instance to add to execution queue. |
Returns
| Type |
Description |
| Task |
Task instance for scheduled action. |
Enqueue<T>(Func<T>)
Adds a new System.Func<> to the end of the queue.
Declaration
public Task<T> Enqueue<T>(Func<T> func)
Parameters
| Type |
Name |
Description |
| System.Func<T> |
func |
The System.Func<> instnace to add to execution queue. |
Returns
| Type |
Description |
| System.Threading.Tasks.Task<T> |
System.Threading.Tasks.Task<> instance for scheduled func. |
Type Parameters