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
RxKotlin is a lightweight library that adds convenient extension functions to [RxJava](https://github.com/ReactiveX/RxJava). You can use RxJava with Kotlin out-of-the-box, but Kotlin has language features (such as [extension functions](https://kotlinlang.org/docs/reference/extensions.html)) that can streamline usage of RxJava even more. RxKotlin aims to conservatively collect these conveniences in one centralized library, and standardize conventions for using RxJava with Kotlin.
6
8
7
9
8
10
```kotlin
9
-
importio.reactivex.rxkotlin.subscribeBy
10
-
importio.reactivex.rxkotlin.toObservable
11
+
importio.reactivex.rxkotlin3.subscribeBy
12
+
importio.reactivex.rxkotlin3.toObservable
11
13
12
14
funmain(args:Array<String>) {
13
15
@@ -45,26 +47,46 @@ Join us on the #rx channel in Kotlin Slack!
45
47
https://kotlinlang.slack.com/messages/rx
46
48
47
49
48
-
## Support for RxJava 1.xand RxJava 2.x
50
+
## Support for RxJava 1.x, RxJava 2.x and RxJava 3.x
49
51
50
52
Use RxKotlin 1.x versions to target RxJava 1.x.
51
53
52
54
Use RxKotlin 2.x versions to target RxJava 2.x.
53
55
56
+
Use RxKotlin 3.x versions to target RxJava 3.x.
57
+
54
58
The maintainers do not update the RxJava dependency version for every RxJava release, so you should explicitly add the desired RxJava dependency version to your `pom.xml` or `build.gradle(.kts)`.
Binaries and dependency information for Maven, Ivy, Gradle and others can be found at [http://search.maven.org](http://search.maven.org/#search%7Cga%7C1%7Crxkotlin).
@@ -210,7 +232,7 @@ Learn more about building this project with JitPack [here](https://jitpack.io/#R
210
232
211
233
## SAM Helpers
212
234
213
-
To help cope with the [SAM ambiguity issue](https://youtrack.jetbrains.com/issue/KT-14984) when using RxJava 2.x with Kotlin, there are a number of helper factories and extension functions to workaround the affected operators.
235
+
To help cope with the [SAM ambiguity issue](https://youtrack.jetbrains.com/issue/KT-14984) when using RxJava with Kotlin, there are a number of helper factories and extension functions to workaround the affected operators.
0 commit comments