Class DisposeOnCancel
java.lang.Object
io.reactivex.rxjava3.internal.schedulers.DisposeOnCancel
Implements the Future interface and calls dispose() on cancel() but
the other methods are not implemented.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
upstream
-
-
Constructor Details
-
DisposeOnCancel
DisposeOnCancel(Disposable d)
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<Object>
-
isDone
public boolean isDone() -
get
-
get
-