We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef6792a commit d4219f3Copy full SHA for d4219f3
src/async_utils/__init__.py
@@ -9,7 +9,7 @@
9
__author__ = "Michael Hall"
10
__license__ = "Apache-2.0"
11
__copyright__ = "Copyright 2020-Present Michael Hall"
12
-__version__ = "2025.03.08b"
+__version__ = "2025.03.12b"
13
14
import os
15
import sys
src/async_utils/lru.py
@@ -182,7 +182,7 @@ def _remove_some_expired(self) -> None:
182
now = time.monotonic()
183
tr = max((len(self._expirations) - self._maxsize) >> self._smooth, 2)
184
185
- while tr > 0:
+ while self._expirations and tr > 0:
186
ts, k = heapq.heappop(self._expirations)
187
if ts < now:
188
tr -= 1
0 commit comments