Automated Code Change

PiperOrigin-RevId: 882693871
This commit is contained in:
hai007
2026-03-12 11:32:47 -07:00
committed by Copybara-Service
parent 6518130860
commit 25ac6a21ab
@@ -45,17 +45,7 @@ std::shared_ptr<api::Cancelable> ScheduledExecutor::Schedule(
return nullptr;
}
if (NearbyFlags::GetInstance().GetBoolFlag(
platform::config_package_nearby::nearby_platform_feature::
kRunScheduledExecutorCallbackOnExecutorThread)) {
return task_scheduler_.Schedule(
[this, runnable = std::move(runnable)]() mutable {
Execute(std::move(runnable));
},
duration);
} else {
return task_scheduler_.Schedule(std::move(runnable), duration);
}
return task_scheduler_.Schedule(std::move(runnable), duration);
}
void ScheduledExecutor::Execute(Runnable&& runnable) {