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

Concurrent Dictionary for thread safety #921

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Conversation

scottf
Copy link
Collaborator

@scottf scottf commented Oct 7, 2024

Addressing #917

Comment on lines 4492 to 4493
Subscription ignore;
subs.TryRemove(s.sid, out ignore);
Copy link
Contributor

@mtmk mtmk Oct 7, 2024

Choose a reason for hiding this comment

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

you could use subs.TryRemove(s.sid, out _); if possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed

Copy link
Contributor

@mtmk mtmk left a comment

Choose a reason for hiding this comment

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

LGTM

@scottf scottf merged commit f68f27f into main Oct 7, 2024
1 check passed
@scottf scottf deleted the concurrent-dictionary branch October 7, 2024 18:11
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