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

Feature: TakeUntil Operator with CancellationToken #2181

Open
nilsauf opened this issue Dec 10, 2024 · 0 comments
Open

Feature: TakeUntil Operator with CancellationToken #2181

nilsauf opened this issue Dec 10, 2024 · 0 comments

Comments

@nilsauf
Copy link

nilsauf commented Dec 10, 2024

As discussed in #2180 I would like to add a new TakeUntil operator that takes a CancellationToken as parameter.

I think the best approach is to implement it as close as possible to the other TakeUntil operators, especially the one that takes a DateTimeOffset.

It should forward all notifications from the source to new observers and register the OnComplete Method on the prodived CancellationToken.
If the CancellationToken is already cancled, it should never subscibe to the source and call the OnComplete Method directly.

I would be happy to implement it.

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

No branches or pull requests

1 participant