File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
66
7+ ## Unreleased
8+
9+ - Fix ` float("inf") ` timeouts in ` Event.wait ` function. (#846 )
10+
711## 1.0.1 (November 3rd, 2023)
812
913- Fix pool timeout to account for the total time spent retrying. (#823 )
Original file line number Diff line number Diff line change @@ -226,6 +226,8 @@ def set(self) -> None:
226226 self ._event .set ()
227227
228228 def wait (self , timeout : Optional [float ] = None ) -> None :
229+ if timeout == float ("inf" ): # pragma: no cover
230+ timeout = None
229231 if not self ._event .wait (timeout = timeout ):
230232 raise PoolTimeout () # pragma: nocover
231233
You can’t perform that action at this time.
0 commit comments