
What can you learn from this piece of code?
Send and Sync
Send: a value of this type can be moved to another thread safely.
Sync: a value of this type can be shared between threads by reference safely.
Formally: T: Sync means &T: Send.
Send
A …