Added a debug function that counts all current tasks

This commit is contained in:
Jacob Henry 2018-11-28 16:37:06 -05:00
parent aa8971049c
commit 1850ee8718
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class ClientWrapper(object):
except slack_util.DeadHook: except slack_util.DeadHook:
# If a hook wants to die, let it. # If a hook wants to die, let it.
self.hooks.remove(hook) self.hooks.remove(hook)
print("Done spawning tasks") print("Done spawning tasks. Now {} running total.".format(len(asyncio.all_tasks())))
async def async_message_feed(self) -> AsyncGenerator[dict, None]: async def async_message_feed(self) -> AsyncGenerator[dict, None]:
""" """