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 a snapshot of the develop branch, built from commit dcea408971.
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