January 2018
Beginner to intermediate
454 pages
10h 8m
English
Let's discuss the second of these marker traits: Sync. A type that implements the Sync trait is safe to be shared with multiple threads. An example of a Sync type is Mutex. It is safe because the only way to get a value from Mutex is to lock it, which is mutually exclusive (another thread cannot access the same value at the same time).
Read now
Unlock full access