3 ms·
Couldn’t you solve this problem with something like this: https://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Channel.html https://ruby-concur
by hit8run 3y ago
Couldn’t you solve this problem with something like this:
https://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Channel.html https://ruby-concurrency.github.io/concurrent-ruby/master/Co...
- jupp0r 3y agoTheoretically yes, but 1. there are lots of problems preventing this working in practice currently (see my sister comment here: https://news.ycombinator.com/item?id=39433274 https://news.ycombinator.com/item?id=39433274). 2. the result of doing this is not the beautiful ruby code you are used to, compared to languages that have been designed for concurrency from the beginning.