Commit af8d36e
committed
asyncioreactor: make sure task isn't deleted midway
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_task1 parent 1cc6ccc commit af8d36e
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments