Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XamarinDispatchScheduler support on NET Maui v8 #4

Open
juniorsaraviao opened this issue Dec 12, 2023 · 0 comments
Open

XamarinDispatchScheduler support on NET Maui v8 #4

juniorsaraviao opened this issue Dec 12, 2023 · 0 comments

Comments

@juniorsaraviao
Copy link

I'd like to know if this package will be migrated to support NET Maui v8. It works as expected on NET Maui Android.

I'm currently migrating a Xamarin app which used XamarinDispatchScheduler but when I use it on NET Maui (iOS), it throws an exception

System.Exception: Please install nuget into platform project
   at Xam.Reactive.Concurrency.XamarinDispatcherScheduler.get_Current()

It happens when I implement this code:

Observable
    .Timer(TimeSpan.FromSeconds(2))
    .ObserveOn(XamarinDispatcherScheduler.Current)
    .Subscribe(_ =>
    {
        lblChangeMe.Text = "Changed";
    });

Details:
Xam.Reactive.DispatchScheduler: v1.1.3
NET Maui: v8.0.100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant