Skip to content

Phrasing of Sync and Send #503

@richard-hajek

Description

@richard-hajek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions