Commit be9f90e
committed
stream: defer readable async iterator listener
Defer installing the readable listener for async iteration until read()
returns null. This avoids listener dispatch on the common path where
data is already buffered while preserving end-of-stream error handling.
Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.51 parent 13feb34 commit be9f90e
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1380 | 1380 | | |
1381 | 1381 | | |
1382 | 1382 | | |
| 1383 | + | |
1383 | 1384 | | |
1384 | 1385 | | |
1385 | 1386 | | |
| |||
1390 | 1391 | | |
1391 | 1392 | | |
1392 | 1393 | | |
1393 | | - | |
1394 | | - | |
1395 | 1394 | | |
1396 | 1395 | | |
1397 | 1396 | | |
1398 | 1397 | | |
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
1402 | 1406 | | |
1403 | 1407 | | |
1404 | 1408 | | |
| |||
1409 | 1413 | | |
1410 | 1414 | | |
1411 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1412 | 1419 | | |
1413 | 1420 | | |
1414 | 1421 | | |
| |||
0 commit comments