From 71bc3a0fc9fe685f3b06b4e4eb3f8c71e093a90f Mon Sep 17 00:00:00 2001 From: Thomas Nield Date: Wed, 17 May 2017 08:36:07 -0500 Subject: [PATCH] Cover SAM helpers in README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index fed2cde..98001ae 100755 --- a/README.md +++ b/README.md @@ -24,6 +24,25 @@ fun main(args: Array) { } ``` +## SAM Helpers + +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. + +``` +Observables.zip() +Observables.combineLatest() +Observable#zipWith() +Observable#withLatestFrom() +Flowables.zip() +Flowables.combineLatest() +Flowable#zipWith() +Flowable#withLatestFrom() +Singles.zip() +Single#zipWith() +Maybes.zip() +``` + + ## Support for RxJava 1.x and RxJava 2.x Use RxKotlin 1.x versions to target RxJava 1.x.