public final class TrampolineScheduler extends Scheduler
Scheduler.Worker
Modifier and Type | Field and Description |
---|---|
static TrampolineScheduler |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Scheduler.Worker |
createWorker()
Retrieves or creates a new
Scheduler.Worker that represents serial execution of actions. |
public static final TrampolineScheduler INSTANCE
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.