esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
executor.hpp File Reference

Executor + timer abstraction (asio-free). More...

#include <chrono>
#include <cstdint>
#include <functional>
Include dependency graph for executor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  esphome::api::Executor
 Minimal executor: deferred execution plus one-shot timers. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::api
 

Typedefs

using esphome::api::TimerId = std::uint64_t
 Opaque handle to a scheduled timer; invalid_timer means "no timer".
 

Variables

constexpr TimerId esphome::api::invalid_timer = 0
 

Detailed Description

Executor + timer abstraction (asio-free).

The Asio implementation wraps an io_context; tests use a manually-advanced fake clock.