Function email::wait_for_message_with_info(Subscription *, const std::chrono::milliseconds)
Defined in File wait.hpp
Function Documentation
-
std::pair<std::string, MessageInfo> email::wait_for_message_with_info(Subscription *subscription, const std::chrono::milliseconds timeout = std::chrono::milliseconds(-1))
Get a message with info from a subscription, waiting until one is available.
For the meaning of the timeout parameter, see
WaitSet::wait
.See also
- Parameters:
subscription – the subscription
timeout – the timeout
- Returns:
the message & message info pair