Skip to content

Commit a779687

Browse files
falcon71akarnokd
authored andcommitted
2.x: Fixed Javadoc for Disposables.fromFuture (#4744)
* Fixed Javadoc for Disposables.fromFuture * Missed a runnable
1 parent 98d0b7f commit a779687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/reactivex/disposables/Disposables.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public static Disposable fromFuture(Future<?> future) {
6666
}
6767

6868
/**
69-
* Construct a Disposable by wrapping a Runnable that is
70-
* executed exactly once when the Disposable is disposed.
71-
* @param future the Runnable to wrap
69+
* Construct a Disposable by wrapping a Future that is
70+
* cancelled exactly once when the Disposable is disposed.
71+
* @param future the Future to wrap
7272
* @param allowInterrupt if true, the future cancel happens via Future.cancel(true)
7373
* @return the new Disposable instance
7474
*/

0 commit comments

Comments
 (0)