westonpace commented on code in PR #13782:
URL: https://github.com/apache/arrow/pull/13782#discussion_r980547896
##########
cpp/src/arrow/util/async_util.cc:
##########
@@ -274,7 +282,9 @@ class AsyncTaskSchedulerImpl : public AsyncTaskScheduler {
AbortUnlocked(submit_result.status(), std::move(lk));
return;
}
- submit_result->AddCallback([this, cost](const Status& st) {
+ // FIXME(C++17, move into lambda?)
Review Comment:
Yep. Although, in retrospect, I'm not sure how it works, since
`std::function` is copyable (maybe it works just because we don't happen to
copy it)
--
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]