Skip to content

Make EndpointFlow a non-copyable struct - #195

Open
tfpauly wants to merge 3 commits into
mainfrom
tfp/non-copyable-endpoint-flow
Open

tfpauly wants to merge 3 commits into
mainfrom
tfp/non-copyable-endpoint-flow

Conversation

@tfpauly

@tfpauly tfpauly commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Make EndpointFlow a non-copyable struct, and handle inbound flows for connections more correctly

@agnosticdev agnosticdev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Very cool, just one question

case .stream(let flow):
while !writeRequests.isEmpty {
if try flow.getOutboundStreamDataRoomAvailable(in: &eventContext) == 0 {
flow.waitForOutputRoomAvailable(self.outputAvailable)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this being replaced somewhere?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, see:

            if events.outputRoomAvailable, self.state == .ready, !self.isInboundFlowHandler {
                self.outputAvailable(in: &eventContext)
            }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants