cloudant/fabric — comment on commit f2097248420cd35cf1f4ac4f8bf89c3f0502d5e0
File: src/fabric_view_all_docs.erl line 158
By kocolosk:

I guess we could basically reimplement the queue data structure with an extra list argument to the function. Push new spawns into A, pull from B until empty then reverse A into B and repeat. Spawn when the sum of the lengths of the two lists is less than 10.