Module tikv_util::worker[][src]

Worker provides a mechanism to run tasks asynchronously (i.e. in the background) with some additional features, for example, ticks.

A worker contains:

Briefly speaking, this is a mpsc (multiple-producer-single-consumer) model.

Modules

future
metrics
pool

Structs

Builder
FutureScheduler

Scheduler provides interface to schedule task to underlying workers.

FutureWorker

A worker that can schedule time consuming tasks.

LazyWorker
ReceiverWrapper
Scheduler

Scheduler provides interface to schedule task to underlying workers.

Stopped
Worker

A worker that can schedule time consuming tasks.

Enums

ScheduleError

Traits

FutureRunnable
Runnable
RunnableWithTimer

Functions

dummy_future_scheduler
dummy_scheduler

Creates a scheduler that can’t schedule any task.