Category : async-await

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, ..

Read more

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 ..

Read more