Skip to main content

Module background

Module background 

Expand description

Background work and timers, provided by the host: tilo_rt::background under the toolkit’s module path.

Structs§

Background
A cheap-to-clone handle to the executor a service was constructed under.
BackgroundGuard
Restores the previously entered executor on drop. Thread-affine.
NoBackground
An executor that refuses all background work, for hosts that have none. Timers still fire, on park, so deadline-driven callers in a synchronous driver make progress.
Pumped
An executor that runs nothing until its owner pumps it.
ThreadPool
A bounded pool of named worker threads, grown on demand, plus a single timer thread for Executor::wake_at.
Unsupported
The host refused to run background work.

Traits§

Executor
How a host runs background work and timers.

Type Aliases§

Job
One unit of background work.