westonpace commented on a change in pull request #11294:
URL: https://github.com/apache/arrow/pull/11294#discussion_r731321783



##########
File path: cpp/src/arrow/util/async_generator.h
##########
@@ -1156,6 +1176,23 @@ AsyncGenerator<T> 
MakeMergedGenerator(AsyncGenerator<AsyncGenerator<T>> source,
   return MergedGenerator<T>(std::move(source), max_subscriptions);
 }
 
+template <typename T>
+Result<AsyncGenerator<T>> MakeSequencedMergedGenerator(

Review comment:
       Yes.  After implementing it I realized it may be a bit of a premature 
optimization (we could probably just use a concatenated generator) but it will 
do exactly as you describe.  So it has a slight advantage over the concatenated 
generator in that it "primes" future generators even if it doesn't start 
reading from them.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to