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

Method BeginExternalTask

cpp/src/arrow/acero/query_context.cc:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50size_t QueryContext::max_concurrency() const { return thread_indexer_.Capacity(); }
51
52Result<Future<>> QueryContext::BeginExternalTask(std::string_view name) {
53 Future<> completion_future = Future<>::Make();
54 if (async_scheduler_->AddSimpleTask([completion_future] { return completion_future; },
55 name)) {
56 return completion_future;
57 }
58 return Future<>{};
59}
60
61void QueryContext::ScheduleTask(std::function<Status()> fn, std::string_view name) {
62 ::arrow::internal::Executor* exec = executor();

Callers 2

StartProducingMethod · 0.80
StartProducingMethod · 0.80

Calls 1

MakeFunction · 0.50

Tested by

no test coverage detected