diff --git a/docs/ext/tasks/index.rst b/docs/ext/tasks/index.rst index abc1b57b7..5dff26c8a 100644 --- a/docs/ext/tasks/index.rst +++ b/docs/ext/tasks/index.rst @@ -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 ...