Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Nov 8, 2017
1 parent 50e25ec commit b95658c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,15 @@ io.reactivex.FlowableOperator fo2 = RxJavaInterop.toV2Operator(rx.Observable.Ope

rx.Observable.Operator fo1 = RxJavaInterop.toV1Operator(io.reactivex.FlowableOperator);
```

### Convert between 1.x `Subscription` and 2.x `Disposable`

```java
// convert from 1.x to 2.x

io.reactivex.disposables.Disposable d2 = RxJavaInterop.toV2Disposable(rx.Subscription);

// convert from 2.x to 1.x

rx.Subscription s1 = RxJavaInterop.toV1Subscription(io.reactivex.disposables.Disposable);
```

0 comments on commit b95658c

Please sign in to comment.