| 495 | } |
| 496 | |
| 497 | std::shared_ptr<ThrottledAsyncTaskScheduler> |
| 498 | ThrottledAsyncTaskScheduler::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 | } |
| 507 | std::unique_ptr<AsyncTaskGroup> AsyncTaskGroup::Make(AsyncTaskScheduler* target, |
| 508 | FnOnce<Status()> finish_cb) { |
| 509 | return std::make_unique<AsyncTaskGroupImpl>(target, std::move(finish_cb)); |
nothing calls this directly
no outgoing calls
no test coverage detected