The mqtt_client is built upon Boost.Asio and thus follows the same principles. This section illustrates the usage of mqtt_client async functions with different CompletionToken.
mqtt_client