PEP 0492 adds new __await__ magic method. Object that implements this method becomes future-like object and can be awaited using await. It
__await__
await
Use direct __await__() call:
__await__()
async def new_sleep(): await asyncio.sleep(2) class Waiting: def __await__(self): return new_sleep().__await__()
The solution was recommended by Yury Selivanov (the author of PEP 492) for aioodbc library