- Make
asyncio_timeoutfully compatible with the standardasyncio.Timeoutbut keep backward compatibility with existingasyncio_timeout.TimeoutAPI. (#422)
- On the CHANGES/README.rst page,
a link to the
Towncrier philosophyhas been fixed. (#388)
- Drop deprecated sync context manager support, use
async with timeout(...): ...instead. (#421)
- Fixed compatibility with asyncio.timeout() on Python 3.11+.
- Added support for Python 3.11.
- Dropped support for Python 3.6.
Fix regression:
- Don't raise TimeoutError from timeout object that doesn't enter into async context manager
- Use call_soon() for raising TimeoutError if deadline is reached on entering into async context manager
(#258)
Make
Timeoutclass available in__all__.
- Implemented
timeout_at(deadline)(#117) - Supported
timeout.deadlineandtimeout.expiredproperties. - Dropped
timeout.remainingproperty: it can be calculated astimeout.deadline - loop.time() - Dropped
timeout.timeoutproperty that returns a relative timeout based on the timeout object creation time; the absolutetimeout.deadlineshould be used instead. - Added the deadline modification methods:
timeout.reject(),timeout.shift(delay),timeout.update(deadline). - Deprecated synchronous context manager usage
- More aggressive typing (#48)
- Drop Python 3.4, the minimal supported version is Python 3.5.3
- Provide type annotations
- Fix
PendingDeprecationWarningon Python 3.7 (#33)
- Changed
timeout <= 0behaviour- Backward incompatibility change, prior this version
0was shortcut forNone - when timeout <= 0
TimeoutErrorraised faster
- Backward incompatibility change, prior this version
- Implement
remainingproperty (#20)- If timeout is not started yet or started unconstrained:
remainingisNone - If timeout is expired:
remainingis0.0 - All others: roughly amount of time before
TimeoutErroris triggered
- If timeout is not started yet or started unconstrained:
- Don't suppress nested exception on timeout. Exception context points
on cancelled line with suspended
await(#13) - Introduce
.timeoutproperty (#16) - Add methods for using as async context manager (#9)
- Support unpublished event loop's "current_task" api.
- Extra check on context manager exit
- 0 is no-op timeout
- Rename to
async-timeout
- The first release.