Xam.Reactive.DispatchScheduler 1.0.0-beta0003

Xamarin Reactive Dispatch Scheduler

Xamarin Cross Platform IScheduler implementation for scheduling onto the main thread. Works with Xamarin.Forms, Xamarin.Android, Xamarin.iOS, and Xamarin.UWP

This is a prerelease version of Xam.Reactive.DispatchScheduler.
There is a newer version of this package available.
See the version list below for details.
Install-Package Xam.Reactive.DispatchScheduler -Version 1.0.0-beta0003
dotnet add package Xam.Reactive.DispatchScheduler --version 1.0.0-beta0003
<PackageReference Include="Xam.Reactive.DispatchScheduler" Version="1.0.0-beta0003" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.Reactive.DispatchScheduler --version 1.0.0-beta0003
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Xamarin Main Thread Dispatcher

Examples
Observable
    .Timer(TimeSpan.FromSeconds(2))
    .ObserveOn(XamarinDispatcherScheduler.Current)
    .Subscribe(_ =>
    {
        lblChangeMe.Text = "Changed";
    });
//Helper to check if you're on the main thread
if (!XamarinDispatcherScheduler.OnMainThread())
{
    throw new Exception("Scheduler fail");
}

I borrowed from the CoreDispatchScheduler From Rx.NET and
the Xamarin.Forms BeginInvokeOnMainThread implementations
to create a combined Scheduler that will work Cross Platform for Xamarin.

Xamarin Main Thread Dispatcher

Examples
Observable
    .Timer(TimeSpan.FromSeconds(2))
    .ObserveOn(XamarinDispatcherScheduler.Current)
    .Subscribe(_ =>
    {
        lblChangeMe.Text = "Changed";
    });
//Helper to check if you're on the main thread
if (!XamarinDispatcherScheduler.OnMainThread())
{
    throw new Exception("Scheduler fail");
}

I borrowed from the CoreDispatchScheduler From Rx.NET and
the Xamarin.Forms BeginInvokeOnMainThread implementations
to create a combined Scheduler that will work Cross Platform for Xamarin.

Release Notes

https://github.com/PureWeen/XamarinDispatchScheduler/releases

Version History

Version Downloads Last updated
1.1.3 2,246 8/19/2018
1.0.0-beta0004 301 4/15/2018
1.0.0-beta0003 329 12/12/2017