wabbajack/Wabbajack.App/Extensions/ReactiveUIExtensions.cs
2021-11-03 21:43:20 -06:00

14 lines
310 B
C#

using System;
using System.Reactive.Linq;
using Avalonia.Threading;
using ReactiveUI;
namespace Wabbajack.App.Extensions;
public static class ReactiveUIExtensions
{
public static IObservable<T> OnUIThread<T>(this IObservable<T> src)
{
return src.ObserveOn(AvaloniaScheduler.Instance);
}
}