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

Add 'T:Send' to prevent UB #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JOE1994
Copy link

@JOE1994 JOE1994 commented Jan 23, 2021

Fixes #2

This PR adds T: Send bounds to the Send/Sync impls of SyncChannel<T>
in order to prevent users from sending non-Send types to other threads.

Thank you for reviewing this PR 👍

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.

SyncChannel<T> should have a bound on T: Send
1 participant