pitrou commented on a change in pull request #7179:
URL: https://github.com/apache/arrow/pull/7179#discussion_r543334176
##########
File path: cpp/src/arrow/util/future.h
##########
@@ -238,6 +242,22 @@ class Future {
return impl_->Wait(seconds);
}
+ template <typename... CancelArgs>
+ bool Cancel(CancelArgs&&... args) {
+ auto& stop_token = impl_->stop_token_;
Review comment:
That's a good question. In Java and Python, a completed Future cannot be
cancelled (note the Python API is inspired from the Java API, AFAIK).
----------------------------------------------------------------
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]