Skip to content

Update some comments to note why we need StaticRawIter/SendPtr wrappers - #22

Merged
jamesmunns merged 2 commits into
mainfrom
james/536-wont-save-us
Jun 4, 2025
Merged

Update some comments to note why we need StaticRawIter/SendPtr wrappers#22
jamesmunns merged 2 commits into
mainfrom
james/536-wont-save-us

Conversation

@jamesmunns

Copy link
Copy Markdown
Contributor

Unfortunately as we are holding NonNulls across await points, we'll still need some kind of adapter to mark this as sound. This means that hawkw/mycelium#536 is not in and of itself sufficient.

Comments have been updated to reflect this.

…r types

Unfortunately as we are holding NonNulls across await points, we'll still need some
kind of adapter to mark this as sound. This means that
hawkw/mycelium#536 is not in and of itself sufficient.

Comments have been updated to reflect this.
@jamesmunns
jamesmunns requested a review from JuliDi June 4, 2025 16:08
@jamesmunns

Copy link
Copy Markdown
Contributor Author

This is a bit of a trivial PR, but I wanted to see if 536 would fix this, and unfortunately it won't because we ALSO hold the NonNull pointers across an await point.

I did a minor change to impl Iterator on the wrapper type so we could use a normal for-loop, but this is mostly a documentation change.

@JuliDi JuliDi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks very good, thank you!
Only a small typo, send vs Send

Comment thread src/intrusive.rs Outdated
Co-authored-by: Julian <20155974+JuliDi@users.noreply.github.com>
@jamesmunns
jamesmunns merged commit e76cbda into main Jun 4, 2025
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