- Make
asyncio_timeout
fully compatible with the standardasyncio.Timeout
but keep backward compatibility with existingasyncio_timeout.Timeout
API. (#422)
- On the CHANGES/README.rst page,
a link to the
Towncrier philosophy
has 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
Timeout
class available in__all__
.
- Implemented
timeout_at(deadline)
(#117) - Supported
timeout.deadline
andtimeout.expired
properties. - Dropped
timeout.remaining
property: it can be calculated astimeout.deadline - loop.time()
- Dropped
timeout.timeout
property that returns a relative timeout based on the timeout object creation time; the absolutetimeout.deadline
should 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
PendingDeprecationWarning
on Python 3.7 (#33)
- Changed
timeout <= 0
behaviour- Backward incompatibility change, prior this version
0
was shortcut forNone
- when timeout <= 0
TimeoutError
raised faster
- Backward incompatibility change, prior this version
- Implement
remaining
property (#20)- If timeout is not started yet or started unconstrained:
remaining
isNone
- If timeout is expired:
remaining
is0.0
- All others: roughly amount of time before
TimeoutError
is 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
.timeout
property (#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.