You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/09/13 22:58:49 UTC

[GitHub] [arrow] westonpace commented on a change in pull request #11145: ARROW-13982: [C++] Don't hang if a fragment is filtered out

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



##########
File path: cpp/src/arrow/util/async_generator.h
##########
@@ -1611,4 +1611,48 @@ AsyncGenerator<T> MakeCancellable(AsyncGenerator<T> source, StopToken stop_token
   return CancellableGenerator<T>{std::move(source), std::move(stop_token)};
 }
 
+template <typename T>
+class OrGenerator {

Review comment:
       RxJS calls this [defaultIfEmpty](https://www.learnrxjs.io/learn-rxjs/operators/conditional/defaultifempty) which is a bit more explicit.  My first thought when I see OrGenerator would be something like... `AsyncGenerator<X>(AsyncGenerator<optional<X>>, X default)`




-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org