Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

TakeUntil - would be good to have an example taking until a condition #60

Open
nigelm187 opened this issue Jan 10, 2019 · 1 comment
Open

Comments

@nigelm187
Copy link
Contributor

https://github.com/SoftwareAG/apama-rxepl/blob/master/docs/interfaces/IObservable.md#takeuntil

Show an example of taking until a certain string value is received

@rpeach-sag
Copy link
Contributor

rpeach-sag commented Jan 10, 2019

I think you're thinking of takeWhile.

Observable.fromValues(["abc", "hello", "test"])
    .takeWhile(Lambda.predicate("value => value != 'hello'"))

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