-
Notifications
You must be signed in to change notification settings - Fork 770
Implementing TakeUntil with CancellationToken #2182
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
Conversation
I just realized that there are a lot of whitespace changes. This is because the .editorconfig enforced filescoped namespaces on saving. Should I revert it back to blockscoped namespace? |
My apologies for the delay in getting to this. I ended up being very busy with customer work for the first part of this year, and have only just got back to working through the backlog of work. (I don't do Rx maintenance full time) So there are two main issues here:
That 2nd point is the main reason you now have a merge conflict. Because you changed While I do want to move over to the new style at some point, I don't want a mix of styles in the repo, so when we do move over to the new style, I'll do it with a single PR that does the whole repo. I realise that since 9 months has passed since you submitted this, you might no longer have any time available to work on this, but if you can, could you retain the current We'll be doing a new 6.1 release soon because I recently merged another change that adds an API, and I'd like to get this change into that as well if possible. If you don't have time to do anything with this, please let me know whether you'd like:
|
using System.Threading; | ||
|
||
/// <summary> | ||
/// Relays items to the downstream until the CancellationToken is cancled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type "cancled" -> "cancelled".
Rx.NET/Source/src/System.Reactive/Linq/Observable/TakeUntilCancellationToken.cs
Show resolved
Hide resolved
Thanks for looking into it! Unfortunately I am on vacation the next 10 days and I have no access to a pc. To the namespace issue: Reading my last comment, I think the .editorconfig of the solution forced the files copied namespace on saving. But maybe it was my personal visual studio settings? I can't verify that right now. |
I think it's more likely to be that second one. We didn't have any settings in the Here's what I'm going to do. I'm going to adjust this PR to merge into a different branch, and then make the changes I think it needs, so we can get this in. |
I realised we were also missing the This is all in place now in #2222 on top of your original work. |
Based on original PR #2182 (Implementing TakeUntil with CancellationToken) by @nilsauf but with the following changes * Revert to block-scoped namespaces * Fix typos, standardized spelling of cancelled * Update release notes * Add new TakeUntil to verified API * Add IQbservable form of TakeUntil * Fix exception documentation on new and one existing TakeUntil overload --------- Co-authored-by: Nils Aufschläger <[email protected]>
This PR implements a new TakeUntil operator with CancellationToken, as proposed in #2181