> For asyncio.Lock (plus other synchronization primitives) and asyncio.Queue, this would be added in https://github.com/python/cpython/pull/18195. Currently waiting on emanu (author of the PR) to finish up some changes, but it's mostly complete. Could I work on adding it to asyncio.Future and other classes in the meantime?
I think the approach should be different:
# leading underscore is significant:
loop = asyncio._get_running_loop()
if loop is None:
issue_deprecation_warning()
loop = asyncio.get_event_loop()