A common question is: "Why not use atomics instead?" Atomics don't implement Clone. Which means the easiest way to share them between threads is... to put them in an Arc! Which means you're now using atomics to share atomics. And that kind of defeats the point.
-
-
Show this thread
-
The reason why I wrote this patch is to help make it easier to write Executors. Each Future is passed a Waker (e.g. a callback with no args). Wakers need to implement Clone so they can be stored and later called on wake-up. This patch makes implementing Wakers by hand easier!
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.