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

Method CheckOptions

cpp/src/arrow/util/future.cc:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 void DoMarkFailed() { DoMarkFinishedOrFailed(FutureState::FAILURE); }
42
43 void CheckOptions(const CallbackOptions& opts) {
44 if (opts.should_schedule != ShouldSchedule::Never) {
45 DCHECK_NE(opts.executor, nullptr)
46 << "An executor must be specified when adding a callback that might schedule";
47 }
48 }
49
50 void AddCallback(Callback callback, CallbackOptions opts) {
51 CheckOptions(opts);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected