Use create_future wrapper for initially created Future.

This commit is contained in:
Rapptz 2017-04-12 19:55:01 -04:00
parent ac90159c72
commit cadf6960b7

View File

@ -43,7 +43,7 @@ class Shard:
self.ws = ws
self._client = client
self.loop = self._client.loop
self._current = asyncio.Future(loop=self.loop)
self._current = compat.create_future(self.loop)
self._current.set_result(None) # we just need an already done future
@property