Commit 679ad24
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 679ad24
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| |||
0 commit comments