apple / apple/swift-http-api-proposal

[AsyncStreaming] The expected behavior of `ConcludingAsyncReader.consumeAndConclude`'s body returning without reading to the end

Open
#53 6 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.