Skip to content

Add collect once check for client streams #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged

Conversation

Mr3zee
Copy link
Collaborator

@Mr3zee Mr3zee commented Aug 6, 2025

Subsystem
kRPC

Problem Description
Client flows have side effects and thus can't be collected more than once

@Mr3zee Mr3zee requested a review from e5l August 6, 2025 15:16
@Mr3zee Mr3zee self-assigned this Aug 6, 2025
@Mr3zee Mr3zee added the bug Something isn't working label Aug 6, 2025
@@ -92,5 +99,9 @@ internal class ServerStreamContext {
private fun streamCanceled(): Throwable = NoSuchElementException("Stream canceled")
}

private class AtomicBoolean(initialValue: Boolean) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌚

@Mr3zee Mr3zee merged commit 0c017be into main Aug 7, 2025
4 checks passed
@Mr3zee Mr3zee deleted the flow-collect-only-once branch August 7, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants