I have a project A. I’m trying to request with the following line of code: return await _httpClient.PostAsync(requestUri, content); The requestUri I call is something simple: http://localhost:3036/api. This URL is from a docker container (project B). When I run this program (project A) running locally on my machine debugging in visual studio or in IIS, ..
I have a python3 code that does something like this: import asyncio import time async def main(): while True: if should_end(): break # time.sleep(0.5) await asyncio.sleep(0.5) if __name__ == "__main__": asyncio.run(main()) I’ve tested it with time.sleep(0.5) and await asyncio.sleep(0.5) but for both cases it is using 100% of CPU. CONTAINER ID NAME CPU % MEM ..
I have multiple functions inside my route and want to execute them in order for eg the control should only move to the next function if the previous function has been successfully executed. For eg refer the below code, I wish to execute task1 first followed by task 2 and so on. Setting a timeout ..