This already exists as `warnings.DeprecationWarning` see the documentation
here:
https://docs.python.org/3/library/exceptions.html#DeprecationWarning
That said, the fact that this is hidden by default [as seen here](
https://docs.python.org/3/library/warnings.html)..
> Base category for warnings
This is already supported with [`asyncio.wait_for()`](
https://docs.python.org/3/library/asyncio-task.html#asyncio.wait_for).
For example: `await asyncio.wait_for(asyncio.Event().wait(), timeout=60)`
___
Python-ideas mailing list -- [email protected]