-
Notifications
You must be signed in to change notification settings - Fork 311
Open
Description
The current documentation describes Send and Sync in this way:
A type is Send if it is safe to send it to another thread.
A type is Sync if it is safe to share between threads (T is Sync if and only if &T is Send).
This wording is unclear to me, overly formal yet vague (what does it mean, exactly, "send to another thread"?)
Proposed change:
Send: A type is Send if it can be moved into another thread.
Sync: A type is Sync if it can be borrowed into another thread. (T is Sync if and only if &T is Send)
This phrasing doesn't change the meaning but makes it much more clear IMHO.
achieveordie, shoebilyas123 and matous-volf
Metadata
Metadata
Assignees
Labels
No labels