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 to view this page for the latest version.
PrevUpHomeNext

test::run_for

Run an I/O context for a certain amount of time.

Synopsis

Defined in header <boost/beast/_experimental/test/handler.hpp>

template<
    class Rep,
    class Period>
void
run_for(
    net::io_context& ioc,
    std::chrono::duration< Rep, Period > elapsed);
Description

This function runs and dispatches handlers on the specified I/O context, until one of the following conditions is true:

Parameters

Name

Description

ioc

The I/O context to run

elapsed

The maximum amount of time to run for.


PrevUpHomeNext