Class NullDispatcher
Inheritance
System.Object
NullDispatcher
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ComposableAsync.Core.dll
Syntax
public sealed class NullDispatcher : IDispatcher
Properties
|
Improve this Doc
View Source
Instance
Returns a static null dispatcher
Declaration
public static IDispatcher Instance { get; }
Property Value
Methods
|
Improve this Doc
View Source
Clone()
Clone dispatcher
Declaration
public IDispatcher Clone()
Returns
|
Improve this Doc
View Source
Dispatch(Action)
Execute action on dispatcher context in a
none-blocking way
Declaration
public void Dispatch(Action action)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
|
Improve this Doc
View Source
Enqueue(Action)
Enqueue the action and return a task corresponding to
the completion of the action
Declaration
public Task Enqueue(Action action)
Parameters
Type |
Name |
Description |
System.Action |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Enqueue(Action, CancellationToken)
Declaration
public 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>)
Enqueue the task and return a task corresponding to
the completion of the task
Declaration
public Task Enqueue(Func<Task> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Enqueue(Func<Task>, CancellationToken)
Declaration
public 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>)
Declaration
public Task<T> Enqueue<T>(Func<T> action)
Parameters
Type |
Name |
Description |
System.Func<T> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
Enqueue<T>(Func<T>, CancellationToken)
Declaration
public 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>>)
Declaration
public Task<T> Enqueue<T>(Func<Task<T>> action)
Parameters
Type |
Name |
Description |
System.Func<System.Threading.Tasks.Task<T>> |
action |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
|
Improve this Doc
View Source
Enqueue<T>(Func<Task<T>>, CancellationToken)
Declaration
public 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
Implements
Extension Methods