Iter when T: Sync
Kestrer opened this issue · comments
Kestrer commented
Would it be possible to add a method that iterates over shared references to each thread's value when T: Sync?
Amanieu d'Antras commented
This isn't possible because this would race with other threads adding new values, even if they are Sync.
Kestrer commented
Ok, makes sense.