apple / apple/swift-http-api-proposal
[AsyncStreaming] How can we tell whether the span in `collect(upTo:body:)` is truncated or not?
Open
async-streaming
- Dominant language
- Swift
- Stars
- 66
- Forks
- 21
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 2
Description
Conceptually, I consider `collect` a once-and-done operation, and the limit is a hard memory limit to not go past. It should throw an error if the full data exceeds the limit. Currently the data is silently truncated.
Contributor guide
Assessment
This issue has not been assessed yet.