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.Runnable
decoratedRun
(package private) @Nullable java.lang.Thread
runner
(package private) @NonNull Scheduler.Worker
w
-
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 void
dispose()
Dispose the resource, the operation should be idempotent.java.lang.Runnable
getWrappedRunnable()
Returns the wrapped action.boolean
isDisposed()
Returns true if this resource has been disposed.void
run()
-
-
-
Constructor Detail
-
DisposeTask
DisposeTask(@NonNull @NonNull java.lang.Runnable decoratedRun, @NonNull @NonNull Scheduler.Worker w)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:Disposable
Returns true if this resource has been disposed.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if this resource has been disposed
-
getWrappedRunnable
public java.lang.Runnable getWrappedRunnable()
Description copied from interface:SchedulerRunnableIntrospection
Returns the wrapped action.- Specified by:
getWrappedRunnable
in interfaceSchedulerRunnableIntrospection
- Returns:
- the wrapped action. Cannot be null.
-
-