boost::corosio::basic_io_context::run_one_until

Process at most one work item until the specified time.

Synopsis

template<
    class Clock,
    class Duration>
std::size_t
run_one_until(std::chrono::time_point<Clock, Duration> const& abs_time);

Description

This function blocks until one work item has been executed, the specified time is reached, or stop() is called. The context is stopped when there is no more outstanding work.

The context must be restarted with restart() before calling this function again after it returns.

Return Value

The number of handlers executed (0 or 1).

Parameters

Name Description

abs_time

The time point until which the call may block.

Created with MrDocs