Quick Contact

✉
fahimkhan20148@gmail.com
📱
+971 507 286 133
Back to Notes
August 18, 2026
concurrencytype-systemthread-safety

Send and Sync

Thread safety markers determine how types can cross thread boundaries:

  • Send: A type T is Send if its ownership can be transferred to another thread.
  • Sync: A type T is Sync if its shared reference is of type Send (i.e., T is Sync if &T is Send).

All primitive types are Send and Sync. Types are automatically Send and Sync if all of their fields are Send and Sync.