This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
Gateway spawns unnecessary tasks #239
Labels
Improvement
Something that is already implemented but can be done better
Description
Currently the gateway spawns two tasks to be able to use
asyncio.wait()
to receive an event:This is unnecessary, as only the latter task needs to be re-created really.
Steps to fix
__slots__
and initialize it as Nonereceive()
(or if it was therun()
) method check for this task and use it inasyncio.wait()
, if it doesn't exist create it.The text was updated successfully, but these errors were encountered: