Skip to content

Update Start.md #34

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

Merged
merged 2 commits into from
Nov 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion operators/Distinct.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Sequence complete.

![distinct](../images/operators/distinct.key.png)

这个操作符有一个变体接受一个函数函数。这个函数根据原始Observable发射的数据项产生一个Key,然后,比较这些Key而不是数据本身,来判定两个数据是否是不同的。
这个操作符有一个变体接受一个函数。这个函数根据原始Observable发射的数据项产生一个Key,然后,比较这些Key而不是数据本身,来判定两个数据是否是不同的。

* Javadoc: [distinct(Func1)](http://reactivex.io/RxJava/javadoc/rx/Observable.html#distinct(rx.functions.Func1))

Expand Down
2 changes: 1 addition & 1 deletion operators/Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

![deferFuture](../images/operators/deferFuture.png)

`rxjava-async`模块还包含一个`deferFuture`操作符,传递给它一个返回`Future`的函数(这个`Future`返回一个`Observable`),`deferFuture`返回一个Observable,但是不会调用你提供的函数,知道有观察者订阅它返回的Observable。这时,它立即调用`Future`的`get()`方法,然后镜像发射`get()`方法返回的Observable发射的数据。
`rxjava-async`模块还包含一个`deferFuture`操作符,传递给它一个返回`Future`的函数(这个`Future`返回一个`Observable`),`deferFuture`返回一个Observable,但是不会调用你提供的函数,直到有观察者订阅它返回的Observable。这时,它立即调用`Future`的`get()`方法,然后镜像发射`get()`方法返回的Observable发射的数据。

用这种方法,你可以在Observables调用链中包含一个返回Observable的`Future`对象。

Expand Down