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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]