Package io.reactivex.rxjava3.core
Class Scheduler.DisposeTask
- java.lang.Object
-
- io.reactivex.rxjava3.core.Scheduler.DisposeTask
-
- All Implemented Interfaces:
Disposable,SchedulerRunnableIntrospection,java.lang.Runnable
- Enclosing class:
- Scheduler
static final class Scheduler.DisposeTask extends java.lang.Object implements Disposable, java.lang.Runnable, SchedulerRunnableIntrospection
-
-
Field Summary
Fields Modifier and Type Field Description (package private) @NonNull java.lang.RunnabledecoratedRun(package private) @Nullable java.lang.Threadrunner(package private) @NonNull Scheduler.Workerw
-
Constructor Summary
Constructors Constructor Description DisposeTask(@NonNull java.lang.Runnable decoratedRun, @NonNull Scheduler.Worker w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose the resource, the operation should be idempotent.java.lang.RunnablegetWrappedRunnable()Returns the wrapped action.booleanisDisposed()Returns true if this resource has been disposed.voidrun()
-
-
-
Constructor Detail
-
DisposeTask
DisposeTask(@NonNull @NonNull java.lang.Runnable decoratedRun, @NonNull @NonNull Scheduler.Worker w)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
dispose
public void dispose()
Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-
getWrappedRunnable
public java.lang.Runnable getWrappedRunnable()
Description copied from interface:SchedulerRunnableIntrospectionReturns the wrapped action.- Specified by:
getWrappedRunnablein interfaceSchedulerRunnableIntrospection- Returns:
- the wrapped action. Cannot be null.
-
-