Pypck relies heavily on Python's asyncio module. To properly close all pending tasks when connection is closed, one has to keep track of all pypck tasks which are scheduled on the event loop.
This PR implements a task registry with a designated create_task function which should be used instead of asyncio.create_task.
Pypck relies heavily on Python's asyncio module. To properly close all pending tasks when connection is closed, one has to keep track of all pypck tasks which are scheduled on the event loop. This PR implements a task registry with a designated
create_task
function which should be used instead ofasyncio.create_task
.