the two epiphanies i had along the way were: (1) t...
# development
a
the two epiphanies i had along the way were: (1) to get something out of an
Arc
, you have to call a method on it, for some reason (2) to get something into a future, you have to do a
.clone()
then a
move |...| { ... }
and it's easy! (shudders thinking of java)
a
What do you mean by get something out of?
a
let (a, b) = x.clone()
causes a type error if
x
is an
Arc<(A, B)>
in this case it caused zero issues that just took me some time to get on friday
e
let (a, b) = *x.clone() This is not an Arc thing, it's a Deref thing: https://doc.rust-lang.org/book/ch15-02-deref.html
a
I was looking for that page!!!! I'd read it once and had kept searching for Arc and not finding it. this is a lesson in itself