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

Method DestroyTrackingTask

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

Source from the content-addressed store, hash-verified

236 Future<> task_fut = Future<>::Make();
237 struct DestroyTrackingTask : public AsyncTaskScheduler::Task {
238 DestroyTrackingTask(bool& my_task_destroyed, Future<> task_fut)
239 : my_task_destroyed(my_task_destroyed), task_fut(std::move(task_fut)) {}
240 ~DestroyTrackingTask() override { my_task_destroyed = true; }
241 std::string_view name() const override { return "DestroyTrackingTask"; }
242 Result<Future<>> operator()() override { return task_fut; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected