Commit 33de3dc
committed
Properly propagate
When a `BackgroundService.wait()` is used, it should also propage
`CancelledError`s, as is it not always normal that a background service
is cancelled unless `stop()` is called, which uses `cancel()` to stop
the tasks.
When `stop()` is used, we properly filter out all `CancelledError`s too,
as in that case we triggered the cancellation, so it is normal.
Signed-off-by: Leandro Lucarella <[email protected]>CancelledError in wait()
1 parent 098e48d commit 33de3dc
1 file changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
| |||
197 | 208 | | |
198 | 209 | | |
199 | 210 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
204 | 217 | | |
205 | 218 | | |
206 | 219 | | |
| |||
0 commit comments