Skip to content

rust: Wrap Context in Arc<> #280

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
Mar 17, 2025
Merged

rust: Wrap Context in Arc<> #280

merged 1 commit into from
Mar 17, 2025

Conversation

gasmith
Copy link
Contributor

@gasmith gasmith commented Mar 11, 2025

Description

We're going to need to store references to the Context on both channels (for access to subscriptions) and sinks (for dynamic subscription management and unregister-on-drop), so we're going to want an Arc. Since the context holds Arc references to channels and sinks, channels and sinks will hold Weak references back to the context.

Copy link

linear bot commented Mar 11, 2025

@gasmith gasmith self-assigned this Mar 11, 2025
@gasmith gasmith changed the title rust: Make Namespace a reference. rust: Make Namespace a reference Mar 11, 2025
@gasmith gasmith force-pushed the gasmith/fg-10745-ns-arc branch from dd24a84 to 3ee1893 Compare March 12, 2025 18:11
@gasmith gasmith changed the title rust: Make Namespace a reference rust: Make Context a reference Mar 12, 2025
@gasmith gasmith changed the title rust: Make Context a reference rust: Wrap Context in Arc<> Mar 12, 2025
@gasmith gasmith force-pushed the gasmith/fg-10745-ns-arc branch 2 times, most recently from a10dd95 to 763aeba Compare March 14, 2025 15:33
Base automatically changed from gasmith/fg-10741-naming to main March 14, 2025 15:53
Copy link
Contributor

@eloff eloff left a comment

Choose a reason for hiding this comment

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

LGTM

@gasmith gasmith merged commit de1dd97 into main Mar 17, 2025
38 checks passed
@gasmith gasmith deleted the gasmith/fg-10745-ns-arc branch March 17, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants