You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ The second is to write the **Hello World** program:
51
51
```java
52
52
packagerxjava.examples;
53
53
54
-
importio.reactivex.*;
54
+
importio.reactivex.rxjava3.core.*;
55
55
56
56
publicclassHelloWorld {
57
57
publicstaticvoidmain(String[] args) {
@@ -63,7 +63,7 @@ public class HelloWorld {
63
63
If your platform doesn't support Java 8 lambdas (yet), you have to create an inner class of `Consumer` manually:
64
64
65
65
```java
66
-
importio.reactivex.functions.Consumer;
66
+
importio.reactivex.rxjava3.functions.Consumer;
67
67
68
68
Flowable.just("Hello world")
69
69
.subscribe(newConsumer<String>() {
@@ -73,15 +73,17 @@ Flowable.just("Hello world")
73
73
});
74
74
```
75
75
76
+
Note that RxJava 3 components now live under `io.reactivex.rxjava3` and the base classes and interfaces live under `io.reactivex.rxjava3.core`.
77
+
76
78
### Base classes
77
79
78
80
RxJava 3 features several base classes you can discover operators on:
79
81
80
-
-[`io.reactivex.Flowable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/Flowable.html): 0..N flows, supporting Reactive-Streams and backpressure
81
-
-[`io.reactivex.Observable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/Observable.html): 0..N flows, no backpressure,
82
-
-[`io.reactivex.Single`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/Single.html): a flow of exactly 1 item or an error,
83
-
-[`io.reactivex.Completable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/Completable.html): a flow without items but only a completion or error signal,
84
-
-[`io.reactivex.Maybe`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/Maybe.html): a flow with no items, exactly one item or an error.
82
+
-[`io.reactivex.rxjava3.core.Flowable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html): 0..N flows, supporting Reactive-Streams and backpressure
83
+
-[`io.reactivex.rxjava3.core.Observable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html): 0..N flows, no backpressure,
84
+
-[`io.reactivex.rxjava3.core.Single`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Single.html): a flow of exactly 1 item or an error,
85
+
-[`io.reactivex.rxjava3.core.Completable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Completable.html): a flow without items but only a completion or error signal,
86
+
-[`io.reactivex.rxjava3.core.Maybe`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Maybe.html): a flow with no items, exactly one item or an error.
85
87
86
88
### Some terminology
87
89
@@ -164,7 +166,7 @@ Practically, this is when the body of the given example above executes.
164
166
One of the common use cases for RxJava is to run some computation, network request on a background thread and show the results (or error) on the UI thread:
@@ -517,9 +519,9 @@ APIs marked with the [`@Experimental`][experimental source link] annotation at t
517
519
518
520
APIs marked with the `@Deprecated` annotation at the class or method level will remain supported until the next major release but it is recommended to stop using them.
519
521
520
-
#### io.reactivex.internal.*
522
+
#### io.reactivex.rxjava3.internal.*
521
523
522
-
All code inside the `io.reactivex.internal.*` packages is considered private API and should not be relied upon at all. It can change at any time.
524
+
All code inside the `io.reactivex.rxjava3.internal.*` packages is considered private API and should not be relied upon at all. It can change at any time.
0 commit comments