Invoke<TResult>(Func<TResult>) Method
Executes the specified Func<TResult> synchronously on the thread that the Dispatcher was created on.
Definition
Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public TResult Invoke<TResult>(
Func<TResult> callback
)
Public Function Invoke(Of TResult) (
callback As Func(Of TResult)
) As TResult
member Invoke :
callback : Func<'TResult> -> 'TResult
Parameters
- Func(TResult)
- A Func<TResult> delegate to invoke through the dispatcher.
Type Parameters
- The type of the callback return value.
Return Value
TResult
The return value from the delegate being invoked.
Remarks
Note that the default priority is DispatcherPriority.Send.
See Also
Reference
Dispatcher Class
Invoke Overload
Avalonia.Threading Namespace