public interface SchedulerRunnableIntrospection
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
Modifier and Type | Method and Description |
---|---|
Runnable |
getWrappedRunnable()
Returns the wrapped action.
|