Back to Comprehensive Rust

`Send`

src/concurrency/send-sync/send.md

latest528 B
Original Source
<!-- Copyright 2022 Google LLC SPDX-License-Identifier: CC-BY-4.0 -->

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.

<details>

As an example, a connection to the SQLite library must only be accessed from a single thread.

</details>