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

Method MakeWithCustomThrottle

cpp/src/arrow/util/async_util.cc:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497std::shared_ptr<ThrottledAsyncTaskScheduler>
498ThrottledAsyncTaskScheduler::MakeWithCustomThrottle(
499 AsyncTaskScheduler* target,
500 std::unique_ptr<ThrottledAsyncTaskScheduler::Throttle> throttle,
501 std::unique_ptr<ThrottledAsyncTaskScheduler::Queue> maybe_queue) {
502 std::unique_ptr<ThrottledAsyncTaskScheduler::Queue> queue =
503 (maybe_queue) ? std::move(maybe_queue) : std::make_unique<FifoQueue>();
504 return std::make_shared<ThrottledAsyncTaskSchedulerImpl>(target, std::move(throttle),
505 std::move(queue));
506}
507std::unique_ptr<AsyncTaskGroup> AsyncTaskGroup::Make(AsyncTaskScheduler* target,
508 FnOnce<Status()> finish_cb) {
509 return std::make_unique<AsyncTaskGroupImpl>(target, std::move(finish_cb));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected