boost::corosio::basic_io_context::run_for
Process work items for the specified duration.
Synopsis
template<
class Rep,
class Period>
std::size_t
run_for(std::chrono::duration<Rep, Period> const& rel_time);
Description
This function blocks until work items have been executed for the specified duration, or stop() is called. The context is stopped when there is no more outstanding work.
|
The context must be restarted with |
Parameters
| Name | Description |
|---|---|
rel_time |
The duration for which to process work. |
Created with MrDocs