Skip to content

Commit 71bc3a0

Browse files
authored
Cover SAM helpers in README
1 parent 81b2754 commit 71bc3a0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ fun main(args: Array<String>) {
2424
}
2525
```
2626

27+
## SAM Helpers
28+
29+
To help cope with the [SAM ambiguity issue](https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FKT-13609) when using RxJava 2.x with Kotlin, there are a number of helper factories and extension functions to workaround the affected operators.
30+
31+
```
32+
Observables.zip()
33+
Observables.combineLatest()
34+
Observable#zipWith()
35+
Observable#withLatestFrom()
36+
Flowables.zip()
37+
Flowables.combineLatest()
38+
Flowable#zipWith()
39+
Flowable#withLatestFrom()
40+
Singles.zip()
41+
Single#zipWith()
42+
Maybes.zip()
43+
```
44+
45+
2746
## Support for RxJava 1.x and RxJava 2.x
2847

2948
Use RxKotlin 1.x versions to target RxJava 1.x.

0 commit comments

Comments
 (0)