| 50 | size_t QueryContext::max_concurrency() const { return thread_indexer_.Capacity(); } |
| 51 | |
| 52 | Result<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 | |
| 61 | void QueryContext::ScheduleTask(std::function<Status()> fn, std::string_view name) { |
| 62 | ::arrow::internal::Executor* exec = executor(); |
no test coverage detected