File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
rxjava-core/src/main/java/rx Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -1013,25 +1013,17 @@ public static <T> Observable<T> just(T value) {
1013
1013
}
1014
1014
1015
1015
/**
1016
- * Returns an Observable that emits a single item and then completes in a specified scheduler.
1016
+ * Returns an Observable that emits a single item and then completes on a specified scheduler.
1017
1017
* <p>
1018
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/just.png">
1019
- * <p>
1020
- * To convert any object into an Observable that emits that object, pass that object into the
1021
- * <code>just</code> method.
1022
- * <p>
1023
- * This is similar to the {@link #from(java.lang.Object[])} method, except that
1024
- * <code>from()</code> will convert an {@link Iterable} object into an Observable that emits
1025
- * each of the items in the Iterable, one at a time, while the <code>just()</code> method
1026
- * converts an Iterable into an Observable that emits the entire Iterable as a single item.
1018
+ * This is a scheduler version of {@link Observable#just(Object)}.
1027
1019
*
1028
1020
* @param value
1029
1021
* the item to pass to the {@link Observer}'s {@link Observer#onNext onNext} method
1030
1022
* @param scheduler
1031
1023
* the scheduler to send the single element on
1032
1024
* @param <T>
1033
1025
* the type of that item
1034
- * @return an Observable that emits a single item and then completes
1026
+ * @return an Observable that emits a single item and then completes on a specified scheduler.
1035
1027
*/
1036
1028
public static <T > Observable <T > just (T value , Scheduler scheduler ) {
1037
1029
return just (value ).observeOn (scheduler );
You can’t perform that action at this time.
0 commit comments