public static async ValueTask <T> InvokeAsync <T>( this UIThreadAccessorInstance accessor, Func <Task <T> > action) { await UIThread.Bind(); return(await action().ConfigureAwait(false)); }
public static async ValueTask <T> InvokeSyncOnAsync <T>( this UIThreadAccessorInstance accessor, Func <T> action) { await UIThread.Bind(); return(action()); }
public static async ValueTask InvokeAsync( this UIThreadAccessorInstance accessor, Func <Task> action) { await UIThread.Bind(); await action().ConfigureAwait(false); }
public static async ValueTask InvokeSyncOnAsync( this UIThreadAccessorInstance accessor, Action action) { await UIThread.Bind(); action(); }