Skip to main content

Module worker

Module worker 

Source
Expand description

The fetch worker loop: one task owning every in-flight fetch, lock-free.

Service::run_worker coalesces incoming requests, dispatches attempts up to the capacity bound, defers the rest, and broadcasts each outcome to its subscribers.

Functions§

effective_cap 🔒
Effective ceiling combining an opts cap with a config sentinel, where a None opts value or a 0 config value means unbounded and the tighter wins.

Type Aliases§

FetchFuture 🔒
One in-flight fetch, borrowing the worker for the service’s lifetime and yielding its key alongside the result so the worker can route it.
FetchFutures 🔒