Xam.Reactive.DispatchScheduler 1.0.0-beta0003

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.
#r "nuget: Xam.Reactive.DispatchScheduler, 1.0.0-beta0003"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xam.Reactive.DispatchScheduler as a Cake Addin
#addin nuget:?package=Xam.Reactive.DispatchScheduler&version=1.0.0-beta0003&prerelease

// Install Xam.Reactive.DispatchScheduler as a Cake Tool
#tool nuget:?package=Xam.Reactive.DispatchScheduler&version=1.0.0-beta0003&prerelease
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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Xam.Reactive.DispatchScheduler:

Repository Stars
skclusive/Skclusive.Blazor.Samples
Skclusive.Blazor.Samples

Version History

Version Downloads Last updated
1.1.3 16,803 8/19/2018
1.0.0-beta0004 602 4/15/2018
1.0.0-beta0003 658 12/12/2017