Template Function plansys2::wait_for_result
Defined in File lifecycle_manager.hpp
Function Documentation
-
template<typename FutureT, typename WaitTimeT>
std::future_status plansys2::wait_for_result(FutureT &future, WaitTimeT time_to_wait) Waits for a future to be ready or until a timeout occurs.
- Template Parameters:
FutureT – Type of the future.
WaitTimeT – Type of the wait duration.
- Parameters:
future – [inout] The future to wait for.
time_to_wait – [in] Maximum time to wait for the result.
- Returns:
std::future_status Status of the future after waiting.