Send

T๊ฐ€ ์Šค๋ ˆ๋“œ ๊ฐ„ ์ด๋™์ด ์•ˆ์ „ํ•˜๋‹ค๋ฉด, T์˜ ํƒ€์ž…์€ Send์ž…๋‹ˆ๋‹ค.

A type T is Send if it is safe to move a T value to another thread.

์†Œ์œ ๊ถŒ์„ ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ๋กœ ์ด๋™ํ•˜๋ฉด ์†Œ๋ฉธ์ž๊ฐ€ ํ•ด๋‹น ์Šค๋ ˆ๋“œ์—์„œ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์„œ ์˜๋ฌธ์€ ์–ธ์ œ ํ•œ ์Šค๋ ˆ๋“œ์—์„œ ๊ฐ’์„ ํ• ๋‹นํ•˜๊ณ  ๋‹ค๋ฅธ ์Šค๋ ˆ๋“œ์—์„œ ๊ฐ’์„ ํ• ๋‹น ํ•ด์ œํ•  ์ˆ˜ ์žˆ๋Š”๊ฐ€ ์ž…๋‹ˆ๋‹ค.

The effect of moving ownership to another thread is that destructors will run in that thread. So the question is when you can allocate a value in one thread and deallocate it in another.