#include #include #include namespace base { Awaitable Backoff::Delay() { const auto t = std::pow(base, count++); auto timer = asio::steady_timer { co_await asio::this_coro::executor, std::chrono::seconds(static_cast(t)) }; co_await timer.async_wait(asio::deferred); } } // namespace base