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

Function DeferNotOk

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

Source from the content-addressed store, hash-verified

716/// holding that error.
717template <typename T>
718static Future<T> DeferNotOk(Result<Future<T>> maybe_future) {
719 if (ARROW_PREDICT_FALSE(!maybe_future.ok())) {
720 return Future<T>::MakeFinished(std::move(maybe_future).status());
721 }
722 return std::move(maybe_future).MoveValueUnsafe();
723}
724
725/// \brief Create a Future which completes when all of `futures` complete.
726///

Callers 15

GetFragmentsFunction · 0.85
operator()Function · 0.85
CountRowsMethod · 0.85
OpenReaderAsyncFunction · 0.85
InspectFragmentMethod · 0.85
CountRowsMethod · 0.85
FinishInternalMethod · 0.85
CountRowsMethod · 0.85
FinishInternalMethod · 0.85
SetUpMethod · 0.85
TestScanDatasetMethod · 0.85
ReadAsyncMethod · 0.85

Calls 3

MoveValueUnsafeMethod · 0.80
okMethod · 0.45
statusMethod · 0.45

Tested by 14

SetUpMethod · 0.68
TestScanDatasetMethod · 0.68
ReadAsyncMethod · 0.68
TEST_FFunction · 0.68
MakeIntegerBatchGenFunction · 0.68
MakeDelayedGenFunction · 0.68
SetUpMethod · 0.68
SleepABitAsyncFunction · 0.68
TESTFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68