Add missing cancel() in tasks example

This commit is contained in:
sgtlaggy 2023-01-05 14:01:01 -08:00 committed by Danny
parent 5d39f96c85
commit de2349e707

View File

@ -116,6 +116,9 @@ Doing something during cancellation:
self.lock = asyncio.Lock()
self.bulker.start()
async def cog_unload(self):
self.bulker.cancel()
async def do_bulk(self):
# bulk insert data here
...