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
[](https://gitpod.io/#https://github.com/ReactiveX/RxJava)
RxJava is a Java VM implementation of [Reactive Extensions](http://reactivex.io): a library for composing asynchronous and event-based programs by using observable sequences.
10
9
11
10
It extends the [observer pattern](http://en.wikipedia.org/wiki/Observer_pattern) to support sequences of data/events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety and concurrent data structures.
12
11
12
+
#### Version 3.x ([Javadoc](http://reactivex.io/RxJava/4.x/javadoc/))
13
+
14
+
- TBD
15
+
13
16
#### Version 3.x ([Javadoc](http://reactivex.io/RxJava/3.x/javadoc/))
14
17
15
18
- Single dependency: [Reactive-Streams](https://github.com/reactive-streams/reactive-streams-jvm).
@@ -42,7 +45,7 @@ The [1.x version](https://github.com/ReactiveX/RxJava/tree/1.x) is end-of-life a
42
45
43
46
### Setting up the dependency
44
47
45
-
The first step is to include RxJava 3 into your project, for example, as a Gradle compile dependency:
48
+
The first step is to include RxJava 4 into your project, for example, as a Gradle compile dependency:
@@ -58,7 +61,7 @@ The second is to write the **Hello World** program:
58
61
```java
59
62
packagerxjava.examples;
60
63
61
-
importio.reactivex.rxjava3.core.*;
64
+
importio.reactivex.rxjava4.core.*;
62
65
63
66
publicclassHelloWorld {
64
67
publicstaticvoidmain(String[] args) {
@@ -67,17 +70,17 @@ public class HelloWorld {
67
70
}
68
71
```
69
72
70
-
Note that RxJava 3 components now live under `io.reactivex.rxjava3` and the base classes and interfaces live under `io.reactivex.rxjava3.core`.
73
+
Note that RxJava 3 components now live under `io.reactivex.rxjava3` and the base classes and interfaces live under `io.reactivex.rxjava4.core`.
71
74
72
75
### Base classes
73
76
74
77
RxJava 3 features several base classes you can discover operators on:
75
78
76
-
-[`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
77
-
-[`io.reactivex.rxjava3.core.Observable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html): 0..N flows, no backpressure,
78
-
-[`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,
79
-
-[`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,
80
-
-[`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.
79
+
-[`io.reactivex.rxjava4.core.Flowable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Flowable.html): 0..N flows, supporting Reactive-Streams and backpressure
80
+
-[`io.reactivex.rxjava4.core.Observable`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Observable.html): 0..N flows, no backpressure,
81
+
-[`io.reactivex.rxjava4.core.Single`](http://reactivex.io/RxJava/3.x/javadoc/io/reactivex/rxjava3/core/Single.html): a flow of exactly 1 item or an error,
82
+
-[`io.reactivex.rxjava4.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,
83
+
-[`io.reactivex.rxjava4.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.
81
84
82
85
### Some terminology
83
86
@@ -160,7 +163,7 @@ Practically, this is when the body of the given example above executes.
160
163
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:
@@ -533,9 +536,9 @@ APIs marked with the [`@Experimental`][experimental source link] annotation at t
533
536
534
537
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.
535
538
536
-
#### io.reactivex.rxjava3.internal.*
539
+
#### io.reactivex.rxjava4.internal.*
537
540
538
-
All code inside the `io.reactivex.rxjava3.internal.*` packages are considered private API and should not be relied upon at all. It can change at any time.
541
+
All code inside the `io.reactivex.rxjava4.internal.*` packages are considered private API and should not be relied upon at all. It can change at any time.
0 commit comments