Skip to main content

Module inflight

Module inflight 

Source
Expand description

Single-flight bookkeeping for one in-flight fetch.

Key is the dedup key the worker’s in-flight map is keyed on; Inflight is the worker-owned entry every coalesced caller subscribes to; SharedResult is the broadcast outcome and Subscription the caller’s handle, whose liveness token cancels the fetch on drop.

Structs§

Identity 🔒
Inflight 🔒
Holds one worker-owned fetch and its subscribers.
Key 🔒
Single-flight dedup key for a request and its complete caller policy.

Functions§

fingerprint 🔒
identity 🔒

Type Aliases§

SharedResult 🔒
Represents the outcome shared by callers coalesced onto one fetch.
Subscription 🔒
Carries a caller’s result channel and liveness token.