apple / apple/swift-http-api-proposal
[AsyncStreaming] The expected behavior of `ConcludingAsyncReader.consumeAndConclude`'s body returning without reading to the end
Open
async-streaming
- Dominant language
- Swift
- Stars
- 66
- Forks
- 21
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 2
Description
If `ConcludingAsyncReader.consumeAndConclude`'s body returns without reading to the end, before the final element is read. What should we do?
1. Keep reading to the end: not ideal since it can leak the resource.
2. Throw an error: conflict with typed throws.
3. Implementation-specific behavior, potentially returning a different value as the final element.
Contributor guide
Assessment
This issue has not been assessed yet.