Class AsyncRunner
Eliminates repeated Task.Run/try/catch/app.Invoke(ShowError) boilerplate. Runs async work on a background thread and routes exceptions to the UI.
public static class AsyncRunner
- Inheritance
-
AsyncRunner
- Inherited Members
Methods
Run(IApplication, Func<Task>, Action<string>, string, string?)
public static void Run(IApplication app, Func<Task> work, Action<string> showError, string errorPrefix, string? logContext = null)