I am using a third party module to retrieve data from an API. I simply would like to asynchronously await the module to return the data which occasionally takes several seco
I am writing test cases and I need to mock async functionality. So, you can write a simple helper function like so.
async def resolve(val): return val
Now you can await anything
foo = resolve(1) await foo # No error!