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

Function Documentation

std::string email::wait_for_message(Subscription *subscription, const std::chrono::milliseconds timeout = std::chrono::milliseconds(-1))

Get a message 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