Commit 6c16079
authored
fix(experimental): implement requests_done method to signal end of requests in async streams. Gracefully close streams. (#1700)
fix(experimental): implement requests_done method to signal end of
requests in async streams. Gracefully close streams.1 parent 16cf512 commit 6c16079Copy full SHA for 6c16079
File tree
Expand file treeCollapse file tree
4 files changed
+64
-0
lines changedOpen diff view settings
Filter options
- google/cloud/storage/_experimental/asyncio
- tests/unit/asyncio
Expand file treeCollapse file tree
4 files changed
+64
-0
lines changedOpen diff view settings
Collapse file
google/cloud/storage/_experimental/asyncio/async_read_object_stream.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_read_object_stream.py+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
151 | 151 | |
152 | 152 | |
153 | 153 | |
| 154 | + |
154 | 155 | |
155 | 156 | |
156 | 157 | |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
157 | 164 | |
158 | 165 | |
159 | 166 | |
|
Collapse file
google/cloud/storage/_experimental/asyncio/async_write_object_stream.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_write_object_stream.py+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
152 | 152 | |
153 | 153 | |
154 | 154 | |
| 155 | + |
155 | 156 | |
156 | 157 | |
157 | 158 | |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
158 | 165 | |
159 | 166 | |
160 | 167 | |
| ||
186 | 193 | |
187 | 194 | |
188 | 195 | |
| 196 | + |
Collapse file
tests/unit/asyncio/test_async_read_object_stream.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_read_object_stream.py+26Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
197 | 197 | |
198 | 198 | |
199 | 199 | |
| 200 | + |
200 | 201 | |
201 | 202 | |
202 | 203 | |
203 | 204 | |
204 | 205 | |
| 206 | + |
205 | 207 | |
206 | 208 | |
207 | 209 | |
208 | 210 | |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
209 | 235 | |
210 | 236 | |
211 | 237 | |
|
Collapse file
tests/unit/asyncio/test_async_write_object_stream.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_write_object_stream.py+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
289 | 289 | |
290 | 290 | |
291 | 291 | |
| 292 | + |
292 | 293 | |
293 | 294 | |
294 | 295 | |
295 | 296 | |
296 | 297 | |
| 298 | + |
297 | 299 | |
298 | 300 | |
299 | 301 | |
| ||
394 | 396 | |
395 | 397 | |
396 | 398 | |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
0 commit comments