scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
70 stars 42 forks source link

asyncioreactor: make sure task isn't deleted midway #274

Closed fruch closed 9 months ago

fruch commented 9 months ago

in push function, self._loop.create_task is called and it's return value is ignored. While the tests may pass now, this code is not correct and this example is called out in docs as a source of bugs, as python docs suggests.

Ref: https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task