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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

set_timeout_service_options

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