Package rx.internal.schedulers
Class NewThreadScheduler
java.lang.Object
rx.Scheduler
rx.internal.schedulers.NewThreadScheduler
Schedules work on a new thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class rx.Scheduler
Scheduler.Worker -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves or creates a newScheduler.Workerthat represents serial execution of actions.
-
Field Details
-
threadFactory
-
-
Constructor Details
-
NewThreadScheduler
-
-
Method Details
-
createWorker
Description copied from class:SchedulerRetrieves or creates a newScheduler.Workerthat represents serial execution of actions.When work is completed it should be unsubscribed using
Subscription.unsubscribe().Work on a
Scheduler.Workeris guaranteed to be sequential.- Specified by:
createWorkerin classScheduler- Returns:
- a Worker representing a serial queue of actions to be executed
-