MCPcopy Create free account
hub / github.com/apache/arrow / TryAddCallback

Method TryAddCallback

cpp/src/arrow/util/future.h:498–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 typename OnComplete = std::invoke_result_t<CallbackFactory>,
497 typename Callback = WrapOnComplete<OnComplete>>
498 bool TryAddCallback(CallbackFactory callback_factory,
499 CallbackOptions opts = CallbackOptions::Defaults()) const {
500 return impl_->TryAddCallback([&]() { return Callback{callback_factory()}; }, opts);
501 }
502
503 template <typename OnSuccess, typename OnFailure>
504 struct ThenOnComplete {

Callers 1

operator()Method · 0.45

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected