Package rx.internal.schedulers
Class ImmediateScheduler
java.lang.Object
rx.Scheduler
rx.internal.schedulers.ImmediateScheduler
Executes work immediately on the current thread.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class rx.Scheduler
Scheduler.Worker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves or creates a newScheduler.Worker
that represents serial execution of actions.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ImmediateScheduler
private ImmediateScheduler()
-
-
Method Details
-
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
-