Contains methods to dispatch execution of System.Action's or System.Func<>'s to the main thread.
public static class StoreDispatcher
Inheritance System.Object 🡒 StoreDispatcher
These methods are required to access an EntityStore as instances of this class are not thread safe. Note: This file may be moved to project: Friflo.Engine.ECS Method mapping for various UI application libraries.
- AvaloniaUI - methods map to
Avalonia.Threading.Dispatcher.UIThread
methods. - MAUI - methods map to
Microsoft.Maui.ApplicationModel.MainThread
methods. - WinForms - methods map to
System.Windows.Threading.Dispatcher
methods.
Methods | |
---|---|
AssertMainThread() | |
Invoke<TResult>(Func<TResult>) | |
InvokeAsync(Func<Task>) | |
InvokeAsync<TResult>(Func<Task<TResult>>) | |
Post(Action) | |
SetDispatcher(IStoreDispatcher) |