schets / multiqueue

A fast mpmc queue with broadcast capabilities
MIT License
201 stars 29 forks source link

Allow cloning MPMCReceiver without T: Clone #8

Closed kchmck closed 7 years ago

kchmck commented 7 years ago

Apparently #[derive(Clone)] adds a T: Clone bound. I noticed this while trying to use the mpmc queue with TcpStream. The tests all pass with this change, but I'm not sure if it's correct as far as the algorithm goes (it seems like it should be since the item is sent to only one receiver.)

schets commented 7 years ago

Interesting, I didn't realize that. I'll check out the other datastructures as well.

Thanks!