Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

set_timeout_service_options
PrevUpHomeNext

Set timeout service options in an execution context.

Synopsis

Defined in header <boost/beast/experimental/core/timeout_service.hpp>

void
set_timeout_service_options(
    boost::asio::io_context& ctx,
    std::chrono::seconds interval);
Description

This changes the time interval for all timeouts associated with the execution context. The option must be set before any timeout objects are constructed.

Parameters

Name

Description

ctx

The execution context.

interval

The approximate amount of time until a timeout occurs.


PrevUpHomeNext