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

add Observable.startWith(Observable) method and unit test #934

Merged
merged 2 commits into from
Mar 6, 2014
Merged

add Observable.startWith(Observable) method and unit test #934

merged 2 commits into from
Mar 6, 2014

Conversation

davidmoten
Copy link
Collaborator

add Observable.startWith(Observable) method and unit test.

I would like to avoid breaking method chaining when want to startWith an Observable rather than just an Iterator or specific values. This is a very minor change as under the covers startWith uses concat anyway but it is significant in terms of code readability and is a natural completion of the startWith api.

…eaking method chaining when want to startWith an Observable rather than just an Iterator or specific values.
@cloudbees-pull-request-builder

RxJava-pull-requests #873 FAILURE
Looks like there's a problem with this pull request

@davidmoten
Copy link
Collaborator Author

Looks like a regression that is unrelated to my pull request. I suspect the involved test is non-deterministic because it assumes that specific asynchronous work is done by the time the line
latch.await(1000, TimeUnit.MILLISECONDS); completes. One second of lockup for the build machine and the test fails.

@cloudbees-pull-request-builder

RxJava-pull-requests #874 SUCCESS
This pull request looks good

@davidmoten
Copy link
Collaborator Author

as suspected the failing test is non-deterministic and nothing to do with this pull request. I'll raise an issue.

benjchristensen added a commit that referenced this pull request Mar 6, 2014
add Observable.startWith(Observable) method and unit test
@benjchristensen benjchristensen merged commit 7a73f07 into ReactiveX:master Mar 6, 2014
@benjchristensen
Copy link
Member

Looks good. Thanks.

@davidmoten davidmoten deleted the add-startWith branch August 18, 2014 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants