We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e25ec commit b95658cCopy full SHA for b95658c
README.md
@@ -111,3 +111,15 @@ io.reactivex.FlowableOperator fo2 = RxJavaInterop.toV2Operator(rx.Observable.Ope
111
112
rx.Observable.Operator fo1 = RxJavaInterop.toV1Operator(io.reactivex.FlowableOperator);
113
```
114
+
115
+### Convert between 1.x `Subscription` and 2.x `Disposable`
116
117
+```java
118
+// convert from 1.x to 2.x
119
120
+io.reactivex.disposables.Disposable d2 = RxJavaInterop.toV2Disposable(rx.Subscription);
121
122
+// convert from 2.x to 1.x
123
124
+rx.Subscription s1 = RxJavaInterop.toV1Subscription(io.reactivex.disposables.Disposable);
125
+```
0 commit comments