Interface IBasicDispatcher
Simplified version of
IDispatcher that can be converted
to a
IDispatcher using the ToFullDispatcher extension method
Assembly: ComposableAsync.Core.dll
Syntax
public interface IBasicDispatcher
Methods
|
Improve this Doc
View Source
Clone()
Clone dispatcher
Declaration
Returns
|
Improve this Doc
View Source
Enqueue(Action, CancellationToken)
Enqueue the action and return a task corresponding
to the execution of the task
Declaration
Task Enqueue(Action action, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Enqueue(Func<Task>, CancellationToken)
Enqueue the task and return a task corresponding
to the execution of the task
Declaration
Task Enqueue(Func<Task> action, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task> |
action |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Enqueue<T>(Func<T>, CancellationToken)
Enqueue the function and return a task corresponding
to the execution of the task
///
Declaration
Task<T> Enqueue<T>(Func<T> action, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Func<T> |
action |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
Enqueue<T>(Func<Task<T>>, CancellationToken)
Enqueue the task and return a task corresponding
to the execution of the original task
Declaration
Task<T> Enqueue<T>(Func<Task<T>> action, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task<T>> |
action |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
Extension Methods