3 ms·
Go's channels/threading model already exists in Java: https://github.com/puniverse/quasar https://github.com/puniverse/quasar
by threeseed 11y ago
Go's channels/threading model already exists in Java:
https://github.com/puniverse/quasar https://github.com/puniverse/quasar
- skj 11y agoIt wasn't immediately obvious from scanning that link. Does it provide channel select? Because that's the hard part. Threadsafe queues are easy, select on them is hard.
- pron 11y agoOf course it does. Java: http://docs.paralleluniverse.co/quasar/javadoc/co/paralleluniverse/strands/channels/Selector.html http://docs.paralleluniverse.co/quasar/javadoc/co/parallelun... Clojure: http://docs.paralleluniverse.co/pulsar/api/co.paralleluniverse.pulsar.core.html#var-select http://docs.paralleluniverse.co/pulsar/api/co.paralleluniver... We'll have a nice slect API for Kotlin, too, very soon.