These are chat archives for rust-lang/rust
Returns a mutable reference to the inner value, if there are no other Arc or Weak pointers to the same value.
Returns None otherwise, because it is not safe to mutate a shared value.
Yep, that's the idea
mpsc::Senderin the HashMap for
try_send, which is of course absolutely unfortunate.
tokiocrates. Message passing is still a little rough but I think I understand now how it works. :)
HashMap<_, Sender>which is cloned on first use?
current_threadreactors on each, take handles and run those on a common executor, right?
Arc<HashMap>and a call-counter and do a deep-copy of that into the struct once called for the first time?
.forward()is difficult here - until that combinator I don't know where I have to send to. So I wanted to do this via
Arcaltogether if using scoped threads (for example, via rayon)