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



##########
File path: cpp/src/arrow/util/future.h
##########
@@ -202,8 +202,30 @@ enum class FutureState : int8_t { PENDING, SUCCESS, 
FAILURE };
 
 inline bool IsFutureFinished(FutureState state) { return state != 
FutureState::PENDING; }
 
+/// \brief Describes whether the callback should be scheduled or run 
synchronously
+enum ShouldSchedule {
+  /// Always run the callback synchronously (the default)
+  NEVER = 0,

Review comment:
       Ok.  I'll make a PR to add this to the style guide docs as well.




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

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


Reply via email to