Skip to main content

DispatcherOperation<T> Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class DispatcherOperation<T>

Inheritance: object -> DispatcherOperation -> DispatcherOperation<T>

Constructors

NameDescription
DispatcherOperation<T>No summary available.

DispatcherOperation<T> Constructor

public DispatcherOperation<T>(Avalonia.Threading.Dispatcher dispatcher, Avalonia.Threading.DispatcherPriority priority, Func<T> callback)

Parameters

dispatcher Avalonia.Threading.Dispatcher

priority Avalonia.Threading.DispatcherPriority

callback Func<T>

Methods

NameDescription
GetAwaiterNo summary available.
GetTaskNo summary available.
AbortInherited from DispatcherOperation.
Wait (2 overloads)Waits for this operation to complete. Inherited from DispatcherOperation.

GetAwaiter Method

public System.Runtime.CompilerServices.TaskAwaiter<T> GetAwaiter()

Returns

System.Runtime.CompilerServices.TaskAwaiter<T>

GetTask Method

public System.Threading.Tasks.Task<T> GetTask()

Returns

System.Threading.Tasks.Task<T>

Properties

NameDescription
ResultNo summary available.
DispatcherInherited from DispatcherOperation.
PriorityInherited from DispatcherOperation.
StatusInherited from DispatcherOperation.

Result Property

public T Result { get; set; }

Events

NameDescription
AbortedAn event that is raised when the operation is aborted or canceled. Inherited from DispatcherOperation.
CompletedAn event that is raised when the operation completes. Inherited from DispatcherOperation.