PrevUpHomeNext

Completion tokens

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.

  1. Async functions with callbacks
  2. Async functions with C++20 coroutines
  3. Async functions with futures

PrevUpHomeNext