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

Add some .NET Reactive Extensions love #3171

Closed
WarBorg opened this issue Jan 10, 2023 · 3 comments
Closed

Add some .NET Reactive Extensions love #3171

WarBorg opened this issue Jan 10, 2023 · 3 comments

Comments

@WarBorg
Copy link

WarBorg commented Jan 10, 2023

Problem

Hello, we are interested in using Realm as a cacheing solution in our Xamarin mobile app project because we work a lot with live data coming from the cloud and on the mobile app we use .net reactive extensions a lot

I was a bit surprised that there are implementations for RxJava but not for .NET Rx, or maybe I didn't find it ?

Any help would be appreciated!

Solution

one possible solution would be to add a nuget package with extension methods dedicated to using .NET Reactive Extensions like returning IObservable from the database objects etc

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Local Database only

@nirinchev
Copy link
Member

Hey, we haven't received many requests for Rx improvements - there's been a few between the years, but nothing to indicate it's a major pain point for a significant portion of our users. While we don't plan to add first party support for Rx, we'd be happy to work with and help the community should they decide to pick it up.

@WarBorg
Copy link
Author

WarBorg commented Jan 12, 2023

hey @nirinchev thank you for the replay, yea unfortunately the. NET community has not embraced Rx like the other communities have (the irony is that Rx came out from the Microsoft research labs :D)
I guess we can always use Rx to transform the events provided by Realm to observable streams, or do you see any potencial downsides to this approach?

@nirinchev
Copy link
Member

nirinchev commented Jan 13, 2023

I don't see major concerns with this approach. As with everything reactive, the main thing to watch out for is threading, but as long as there's a well-behaved synchronization context installed, things should just work.

I'm going to close this issue as that's not something we have short/medium-term plans to support, but if you run into problems using Realm in a Rx setup, feel free to open a new issue and we'll try to help.

@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants