4 ms·
Hi, creator here; at the time I had encountered the need of concurrently downloading multiple files (of potentially different sizes, at potentially different ra
by g-andrade 11y ago
Hi, creator here; at the time I had encountered the need of concurrently downloading multiple files (of potentially different sizes, at potentially different rates, ..), albeit in a controlled way (whether this bound be 2, 10 or 100 tasks at once.) This issue had popped up before, so I figured I might as well have a generic implementation close by for the future.
I suppose one of the most practical features resides in the fact that it's 'consumer' based - the workers will continue trying to get work done as long as they're free and there are pending tasks (instead of a 'split first' approach, which makes more sense for homogeneous batches.)
I wouldn't use it for small-lived (< 10ms?) tasks, though - the overhead might not be worth it.
- istvan__ 11y agoThanks for the reply! Interesting use case, I did not think about that angle. Thanks for explaining it. I definitely see some use of this library now.
- timClicks 11y agoI recommend providing a walk through of that example in your README. Would be much more compelling to me than the factorial demo you've written up so far.
- g-andrade 11y agoFair enough! :)