-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Feature: Operators for IObservable<Optional<T>> #741
Feature: Operators for IObservable<Optional<T>> #741
Conversation
Codecov Report
@@ Coverage Diff @@
## main #741 +/- ##
==========================================
- Coverage 72.48% 64.29% -8.19%
==========================================
Files 221 222 +1
Lines 11176 11224 +48
Branches 0 2271 +2271
==========================================
- Hits 8101 7217 -884
+ Misses 3075 3062 -13
- Partials 0 945 +945
|
All tests are passing on both |
Thanks for looking at this. I think it is up to date. 2 days ago I updated it. I tried to sync again just now and it already has all the commits. This branch is 5 commits ahead, but that's what I'm trying to merge. The issue isn't a merge conflict. It is saying the coverage level of the unit tests drops below an acceptable level, which is odd because the one file I'm adding has 100% coverage. |
This is odd and looks like the code coverage tool is confused. |
Codecov recently had an upgrade to its algorithm so suspect it is that. If you check it in it'll just be at that level. |
Ah, my mistake, I misread it. Test coverage, not test results. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This PR adds some extension methods to
IObservable<Optional<T>>
to enable the same fluent syntax forIObservable<Optional<T>>
that exists forOptional<T>
. The operations are the identical to the singleOptional
versions except they apply to every value that comes through the observable event stream.Examples Usage
Some basic usage shown below:
Combine them with other Observable Optional functionality, such as that from #740.
It can also be used with the extension methods added in #739 to create this advanced helper functions that syncs a value between an observable cache and a source cache:
(There are better ways to implement such a thing, this is just an example.)