Skip to content
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

Better semantics for invoking #close. #66

Closed
wants to merge 5 commits into from
Closed

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Sep 4, 2024

How #close is invoked is a bit tricky. Essentially there are some high level operations that consume a body, and shouldn't be overridden by sub-classes, as self.close should be invoked, if possible, on the very last body in the chain. If a wrapper overrides #each for example, self.close won't refer to the right body.

Types of Changes

  • Semantics.

Contribution

@ioquatix ioquatix closed this Sep 5, 2024
@ioquatix ioquatix deleted the body-handling branch September 5, 2024 08:07
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.

1 participant