Package rx.internal.schedulers
Class ImmediateScheduler
- java.lang.Object
-
- rx.Scheduler
-
- rx.internal.schedulers.ImmediateScheduler
-
public final class ImmediateScheduler extends Scheduler
Executes work immediately on the current thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
ImmediateScheduler.InnerImmediateScheduler
-
Nested classes/interfaces inherited from class rx.Scheduler
Scheduler.Worker
-
-
Field Summary
Fields Modifier and Type Field Description static ImmediateScheduler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ImmediateScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scheduler.Worker
createWorker()
Retrieves or creates a newScheduler.Worker
that represents serial execution of actions.
-
-
-
Field Detail
-
INSTANCE
public static final ImmediateScheduler INSTANCE
-
-
Method Detail
-
createWorker
public Scheduler.Worker createWorker()
Description copied from class:Scheduler
Retrieves or creates a newScheduler.Worker
that represents serial execution of actions.When work is completed it should be unsubscribed using
Subscription.unsubscribe()
.Work on a
Scheduler.Worker
is guaranteed to be sequential.- Specified by:
createWorker
in classScheduler
- Returns:
- a Worker representing a serial queue of actions to be executed
-
-