Support custom event loops

This commit is contained in:
Lonami Exo
2018-06-14 19:35:12 +02:00
parent 908dfa148b
commit 0f14f3b16a
11 changed files with 48 additions and 40 deletions

View File

@@ -144,7 +144,7 @@ class UpdateMethods(UserMethods):
# region Private methods
def _handle_update(self, update):
asyncio.ensure_future(self._dispatch_update(update))
asyncio.ensure_future(self._dispatch_update(update), loop=self._loop)
async def _dispatch_update(self, update):
if self._events_pending_resolve: