Skip to content

Conversation

@gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Sep 7, 2025

No description provided.

@gjcairo gjcairo requested a review from FranzBusch September 7, 2025 20:30
public consuming func collect<Result>(
upTo limit: Int,
body: (Span<Underlying.ReadElement>) async throws -> Result
body: consuming @escaping (Span<Underlying.ReadElement>) async throws -> Result
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn’t be escaping. Why is this needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh because I had marked the closure as consuming and I cannot do that unless it's also @escaping. However I don't think we need the closure to be consuming - this was a leftover of other stuff I was trying.



extension Optional {
public mutating func sendingTake() -> sending Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn’t be public

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

More leftovers :D

@gjcairo gjcairo merged commit 3d6126d into main Sep 16, 2025
12 of 21 checks passed
@gjcairo gjcairo deleted the sending branch September 16, 2025 09:20
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.

3 participants