When we use concurrency, all tasks are running in the same thread. When the await or yield from keywords is used in the task, the task is suspended and the EventLoop executes the next task. This will be occur until all tasks are completed. If you have a blocking function ...

This is my first post. I've posted on my Blogspot[pt], but now I will migrate my blog to this plataform. Now, I use Pelican, an amazing static website generator, powered by Python <3.

Long Polling is a technique used when you need create a real time application, where the server will wait from a event occur to response the request. On this example, we will create a webchat, using a simple text file. The server will read the text file, and will hold ...