Documentation
¶
Overview ¶
Package sf provides a tiny generic singleflight-style coalescer used internally by middlewares that need to dedupe concurrent in-flight producers for the same key (middleware/cache — and, potentially, future adapters). The public middleware/singleflight package serves a different purpose (HTTP-response coalescing at the chain level) and owns its own implementation tuned for http/celeris types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
Call is a single in-flight call for a key. Followers block on wg; the leader populates Result/Err before calling wg.Done.
Click to show internal directories.
Click to hide internal directories.