Skip to content

Commit 64eebf5

Browse files
Deprecate Old Using Method
1 parent 79535dc commit 64eebf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2935,7 +2935,9 @@ public final static <T, Resource> Observable<T> using(
29352935
* @return the Observable whose lifetime controls the lifetime of the dependent resource object
29362936
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#using">RxJava wiki: using</a>
29372937
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229585.aspx">MSDN: Observable.Using</a>
2938+
* @deprecated Use replacement `using` method with different overloads.
29382939
*/
2940+
@Deprecated
29392941
public final static <T, Resource extends Subscription> Observable<T> using(Func0<Resource> resourceFactory, Func1<? super Resource, ? extends Observable<? extends T>> observableFactory) {
29402942
return create(new OnSubscribeUsing<T, Resource>(resourceFactory, observableFactory, new Action1<Resource>() {
29412943

0 commit comments

Comments
 (0)