Top Description Methods
io.reactivex.rxjava3.schedulers

public Interface SchedulerRunnableIntrospection

Known Direct Implementers
io.reactivex.rxjava3.core.Scheduler.Worker.PeriodicTask, io.reactivex.rxjava3.core.Scheduler.PeriodicDirectTask, io.reactivex.rxjava3.core.Scheduler.DisposeTask, io.reactivex.rxjava3.internal.schedulers.AbstractDirectTask, io.reactivex.rxjava3.internal.schedulers.ExecutorScheduler.DelayedRunnable
Imports
io.reactivex.rxjava3.annotations.NonNull, io.reactivex.rxjava3.functions.Function, io.reactivex.rxjava3.plugins.RxJavaPlugins

Interface to indicate the implementor class wraps a Runnable that can be accessed via getWrappedRunnable().

You can check if a Runnable task submitted to a Scheduler (or its Scheduler.Worker) implements this interface and unwrap the original Runnable instance. This could help to avoid hooking the same underlying Runnable task in a custom RxJavaPlugins#onSchedule(Runnable) hook set via the RxJavaPlugins#setScheduleHandler(Function) method multiple times due to internal delegation of the default Scheduler.scheduleDirect or Scheduler.Worker.schedule methods.

History: 2.1.7 - experimental

Since
2.2

Method Summary

Modifier and TypeMethod and Description
public @NonNull Runnable

Returns:

the wrapped action. Cannot be null.
getWrappedRunnable
()

Returns the wrapped action.

Method Detail

getWrappedRunnableback to summary
public @NonNull Runnable getWrappedRunnable()

Returns the wrapped action.

Returns:@NonNull Runnable

the wrapped action. Cannot be null.

Annotations
@NonNull