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

Adopt Limit and ForEach Java 8 Naming Conventions #1232

Merged
merged 2 commits into from
May 20, 2014

Conversation

benjchristensen
Copy link
Member

As per discussion at #678

Code now can look like this:

Observable.from(1, 2, 3).limit(2).forEach(System.out::println);

as an alias to this:

Observable.from(1, 2, 3).take(2).subscribe(System.out::println);

- as per Java 8 Stream naming conventions in discussion ReactiveX#678
As per discussion at ReactiveX#678

Code like this is now supported:

```java
Observable.from(1, 2, 3).forEach(System.out::println);
Observable.from(1, 2, 3).toBlocking().forEach(System.out::println);
```
benjchristensen added a commit that referenced this pull request May 20, 2014
Adopt Limit and ForEach Java 8 Naming Conventions
@benjchristensen benjchristensen merged commit e50aa5d into ReactiveX:master May 20, 2014
@benjchristensen benjchristensen deleted the 678-Java8-names branch May 20, 2014 18:08
@cloudbees-pull-request-builder

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

@benjchristensen benjchristensen mentioned this pull request Jun 1, 2014
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.

None yet

2 participants