Re:The Next Step for Generics
by phamilton on Tuesday June 16, 2020 @04:42PM
(#23543821)
I'd like generics for concurrency constructs. Obvious ones like Mutex<T> but generics are necessary for a bunch of other constructs like QueueConsumer<T> where I just provide a function from T -> error and it will handle all the concurrent consumption implementation for me. And yes, that's almost just a chan T except for the timeouts and error handling and concurrency level, etc.
[ Parent
| on HN ]
There are no comments on this comment yet.