Send and Sync
Thread safety markers determine how types can cross thread boundaries:
- Send: A type
TisSendif its ownership can be transferred to another thread. - Sync: A type
TisSyncif its shared reference is of typeSend(i.e.,TisSyncif&TisSend).
All primitive types are Send and Sync. Types are automatically Send and Sync if all of their fields are Send and Sync.
