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

Make Label Send + Sync #139

Merged
merged 3 commits into from
May 10, 2023
Merged

Make Label Send + Sync #139

merged 3 commits into from
May 10, 2023

Conversation

KodrAus
Copy link
Collaborator

@KodrAus KodrAus commented May 10, 2023

Since the Label type contains a *const internally it conservatively doesn't automatically implement Send or Sync. The type is safe to send and share across threads though. It acts like a specialized Cow<str> that keeps a pointer to the actual string data to avoid needing to go through the Cow's variant.

@KodrAus KodrAus merged commit a73e63b into main May 10, 2023
@KodrAus KodrAus deleted the fix/send-sync-label branch May 10, 2023 09:29
@KodrAus KodrAus mentioned this pull request May 10, 2023
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.

1 participant