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

Method MyTask

cpp/src/arrow/util/async_util_test.cc:170–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 Future<> finished = AsyncTaskScheduler::Make([&](AsyncTaskScheduler* scheduler) {
169 struct MyTask : public AsyncTaskScheduler::Task {
170 MyTask(bool* my_task_destroyed_ptr, Future<> task_fut)
171 : my_task_destroyed_ptr(my_task_destroyed_ptr), task_fut(std::move(task_fut)) {}
172 ~MyTask() { *my_task_destroyed_ptr = true; }
173 Result<Future<>> operator()() override { return task_fut; }
174 std::string_view name() const override { return kDummyName; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected