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

Implement Sync for Sender #55

Merged
merged 1 commit into from
Feb 2, 2025
Merged

Implement Sync for Sender #55

merged 1 commit into from
Feb 2, 2025

Conversation

faern
Copy link
Owner

@faern faern commented Feb 2, 2025

Fixes #46 and partially #26.

I avoided this initially since the type is supposed to be single producer. I myself did not run into any use case where I needed the sender to be sync. But #46 has a good argument for it: Storing the sender in an overly conservative container that requires Sync on its content.

No, the Receiver can definitely not be Sync. See this explanation: #26 (comment)

@faern faern force-pushed the impl-sync-for-sender branch from d92b743 to 1b5b0ac Compare February 2, 2025 07:36
@faern faern merged commit 1b5b0ac into main Feb 2, 2025
11 checks passed
@faern faern deleted the impl-sync-for-sender branch February 2, 2025 07:36
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.

Consider adding impl Sync for Sender?
1 participant