-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Issue with amb operator #2538
Comments
|
Looks
|
Thanks Zsxwing, I have tried using merge and takewhile, but still it is giving the same issue. |
I have tried some sample Junit test, both my tests are failed. It should pass, don't know what is wrong in this code, Could some one help me on that?
|
|
Thanks Akarnokd, I have one scenario please let me know whether can we do it using observable or not. Scenario: I am executing 5 observables in parallel, I am expecting status should be CURRENT from any of the observable. if any of the observable emits the value CURRENT then my method should return the status CURRENT and if none of the observables emits CURRENT status then my method should return the value which emits by the last observable. Please let me know can we do this by Observable? |
Hi Akarnokd, Is takeUntil(predicate) available in any of the released jar? I found only takeUntil(Observable) . |
You'd need to check out #2493 and build it for yourself. I'm still waiting for response regarding the naming and exact behavior. |
Got it!! Thanks Akarnokd. |
I am getting an error when build the project. IST-pradhakr-6351:RxJava pradhakr$ ./gradlew clean build FAILURE: Build failed with an exception.
BUILD FAILED |
This doesn't match the current documentation for amb (wiki or javadoc) Is the documentation misleading here, or is the implementation incorrect? On Sat, Jan 24, 2015 at 7:47 PM, Shixiong Zhu [email protected]
David M. Gross |
@pradhakrishnan See here for the build problem: #2336 (comment) |
I think the doc is misleading. |
Thanks @zsxwing , It works. |
This issue is the continuation of my old issue #2537 . I couldn't reopen my old issue so i just created new one.
I am using amb operator and to get the value i am using firstOrDefault(), some times it works fine, but most of the time it is giving default value. Is there anything wrong in my code?
Output trace:
157 [2015-01-24 18:08:49,917] [main] WARN com.umapranesh.sample.observable.asynceventhandler.GetVideoStatusEventHandler - *_Status Event_*
com.umapranesh.sample.observable.GetVideoStatusMessage
Final status Status === DEFAULT
Thread 10 for LINEAR giving status INVALID
Thread 11 for NONLINEAR giving status CURRENT
Thread 11 is giving the value what i expected, but before that observable returns the default value.
Can someone help on this.
The text was updated successfully, but these errors were encountered: