Using Rx observable stream, is there an effective way to get the first item, complete the source observable, but throw an exception if the second item arrives? Sounds like not a good situation to use Rx for, but is there a clever way to handle it?
Rx: get first item, but throw exception when the second item arrives
98 Views Asked by Jaewan Kim At
1
There are 1 best solutions below
Related Questions in SYSTEM.REACTIVE
- Is there a way to cancel and replace an observable if it is producing too many values too fast?
- Convert from IObservable<byte> to Stream?
- Integrating Observables into Blazor Fluxor Effects like in Angular
- Rx.Net Window inner observables completing early
- Observable from Func delegate
- How to pull from IObservable
- Rx.NET Buffer with delay problem on quotes aggregation
- How to implement a .Debounce() / .DebounceDistinct() extension methods for observable streams in RXNet (C#)?
- How to wait subscriber to complete before onNext?
- RX operator to scan with prior value, with signal deriving from value itself
- What can cause a BehaviorSubject to report unhanded exceptions of another unrelated observable?
- Processing batched events with RX Observables in Hosted Service
- Rx - Scheduler that only allows n number of parallel operations at a time
- How to create a Stream out of IObservable<byte>?
- Converting Stream to Observable
Related Questions in RX-PY
- Observable-Observer RxPy pattern with asyncio
- Is this the correct way of using reactiveX in python?
- Rxpy emit certain values with timeout
- RXPY semaphore filter
- Rx Python - subscription to subject in main thread but on_next in background thread
- RxPY concurrency
- How to use subprocess in a RxPY map correctly?
- Filtering another stream based on item in current stream using rxpy
- How to accumulate a DataFrame in RxPy?
- rx.interval and rx.timer not producing results
- How can I rewrite this countdown timer using RxPY?
- Python: How to call async function inside rx.subject subscribe on_next
- Python reactive programming conditional executions
- rxpy composing observables efficiently
- Create an interval and countdown using rxpy
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far as I understand, this is a violation of the
IObservableContract, that clearly specifies that no extra items should arrive after eithererrororcomplete. So basically, you are checking for a situation that cannot (or should not) arise.