Relative Content

Tag Archive for pythonasynchronouspython-asynciopriority-queueevent-loop

How to prioritize the tasks of asyncio eventloop?

I want to create a custom implementation of the asyncio eventloop so that the tasks handled by the eventloop have a priority. The tasks that are available or “ready” can then be ordered by priority and the eventloop selects the one with the highest priority as the next coroutine to execute.