ask / mode

Python AsyncIO Services
Other
240 stars 55 forks source link

The loop argument to asyncio.Queue is deprecated since Python 3.8, and scheduled for removal in Python 3.10 #61

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago

https://github.com/ask/mode/blob/56216a2bdd949197a3e130fb47ebfbb1306da148/mode/threads.py#L331

  /root/py39-venv/lib/python3.9/site-packages/mode/threads.py:331: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    self._queue = asyncio.Queue(loop=self.loop)
lindycoder commented 2 years ago

Trying to use with python 3.10 via Faust, so this is currently blocking, is there any known workaround ?

taybin commented 2 years ago

Use the updated version at https://github.com/faust-streaming/mode/, available on pypi as mode-streaming.