Exemple #1
0
        public static async ValueTask <T> InvokeAsync <T>(
            this UIThreadAccessorInstance accessor, Func <Task <T> > action)
        {
            await UIThread.Bind();

            return(await action().ConfigureAwait(false));
        }
Exemple #2
0
        public static async ValueTask <T> InvokeSyncOnAsync <T>(
            this UIThreadAccessorInstance accessor, Func <T> action)
        {
            await UIThread.Bind();

            return(action());
        }
Exemple #3
0
        public static async ValueTask InvokeAsync(
            this UIThreadAccessorInstance accessor, Func <Task> action)
        {
            await UIThread.Bind();

            await action().ConfigureAwait(false);
        }
Exemple #4
0
        public static async ValueTask InvokeSyncOnAsync(
            this UIThreadAccessorInstance accessor, Action action)
        {
            await UIThread.Bind();

            action();
        }