Function email::wait_for_message_with_info(std::shared_ptr<Subscription>, const std::chrono::milliseconds)

Function Documentation

std::pair<std::string, MessageInfo> email::wait_for_message_with_info(std::shared_ptr<Subscription> subscription, const std::chrono::milliseconds timeout = std::chrono::milliseconds(-1))

Get a message with info from a subscription, waiting until one is available.