I'm not sure how to use aync/await. Assume I have this function:
async def test():
result = get_db_data() # to get records from db
return result
So, here get_data is not an asynchronous function, and wehn I call test() I use await test(). But my question is that code considered async or should I also make get_data and async func and call it with await?
Please I need help
Note: I have tried to add await asyncio.sleep(30) in test function and I tested 2 requests at the same time, so it seems that it is working beacuse it returned both results after 30 seconds (so it didn't take 60 seconds)