Repository navigation
Commit f24ad17
authored
docs: point generators that stream their input to toBatches
Every streaming generator reads its input through toBatches, which
takes both the stream and the collected array one thread gives, but the
docs for writing one only said to accept both.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 9b2c1d5 commit f24ad17
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
0 commit comments