public final class NewThreadScheduler extends Scheduler
Scheduler.Worker
Constructor and Description |
---|
NewThreadScheduler(ThreadFactory threadFactory) |
Modifier and Type | Method and Description |
---|---|
Scheduler.Worker |
createWorker()
Retrieves or creates a new
Scheduler.Worker that represents serial execution of actions. |
public NewThreadScheduler(ThreadFactory threadFactory)
public Scheduler.Worker createWorker()
Scheduler
Scheduler.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.
createWorker
in class Scheduler
Copyright © 2017. All rights reserved.