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



##########
File path: cpp/src/arrow/dataset/scanner.h
##########
@@ -123,6 +123,12 @@ struct ARROW_DS_EXPORT ScanOptions {
   /// Fragment-specific scan options.
   std::shared_ptr<FragmentScanOptions> fragment_scan_options;
 
+  /// Callback which will be run whenever the scanner pauses due to 
backpressure
+  ///
+  /// This is mostly for debugging & tracing so that the consumer can be 
notified if
+  /// they are not consuming data quickly enough.
+  std::function<void()> on_paused_callback;

Review comment:
       Oops, I left this in.  That was an earlier attempt at fixing the test >_<




-- 
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