Closed johnloy closed 6 years ago
I'm sure there's a large number of uses, but I find myself typically using it in one of two scenarios:
@dvlsg Thanks! Very helpful. The possibility of constraining concurrent activity is one that could really come in handy.
Of course!
I'll go ahead and close this out, but feel to ask any other questions as you run across them, and I'll do my best to answer.
After trying out async-csp—thank you so much for developing it by the way—I've been searching around for practical use cases for buffered channels, but without much success. So far in my experimentation with CSP, and async-csp in particular, I've only been using non-buffered ("rendezvous"?) blocking put/take. It seems to suffice for everything I've tried to achieve so far. I can't help but think I might be missing some crucial insight that could lead to more elegant solutions through buffering, though.
The only possible example that comes to my mind is awaiting puts from multiple channels for the purpose of aggregation, and then taking the latest from each once puts have been made to all.
Much appreciation in advance for any help you can offer.