I am learning concurrency and want to clarify my understanding on the following code example from the Rust book. Please correct me if I am wrong.
use std::
[...] what is happening on
let data = data.clone()
?
Arc
stands for Atomically Reference Counted. An Arc
manages one object (of type T
) and serves as a proxy to allow for shared ownership, meaning: one object is owned by multiple names. Wow, that sounds abstract, let's break it down!
Let's say you have an object of type Turtle