Skip to main content

Invoke Method

Overload List​

Invoke(Action)Executes the specified Action synchronously on the thread that the Dispatcher was created on.
Invoke(Action, DispatcherPriority)Executes the specified Action synchronously on the thread that the Dispatcher was created on.
Invoke(Action, DispatcherPriority, CancellationToken)Executes the specified Action synchronously on the thread that the Dispatcher was created on.
Invoke(Action, DispatcherPriority, CancellationToken, TimeSpan)Executes the specified Action synchronously on the thread that the Dispatcher was created on.
Invoke(TResult)(Func(TResult))Executes the specified Func<TResult> synchronously on the thread that the Dispatcher was created on.
Invoke(TResult)(Func(TResult), DispatcherPriority)Executes the specified Func<TResult> synchronously on the thread that the Dispatcher was created on.
Invoke(TResult)(Func(TResult), DispatcherPriority, CancellationToken)Executes the specified Func<TResult> synchronously on the thread that the Dispatcher was created on.
Invoke(TResult)(Func(TResult), DispatcherPriority, CancellationToken, TimeSpan)Executes the specified Func<TResult> synchronously on the thread that the Dispatcher was created on.

See Also​

Reference​

Dispatcher Class
Avalonia.Threading Namespace