Function email::wait_for_message_with_info(Subscription *, const std::chrono::milliseconds)

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

WaitSet::wait()

Parameters:
  • subscription – the subscription

  • timeout – the timeout

Returns:

the message & message info pair