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 an older version of Boost and was released in 2024. The current version is 1.89.0.
A completion token adapter that cancels an operation after a timeout.
template< typename CompletionToken, typename Clock, typename WaitTraits = boost::asio::wait_traits<Clock>, typename Executor = any_io_executor> class cancel_after_timer
|
Name |
Description |
|---|---|
|
cancel_after_timer [constructor] |
Constructor. |
|
Name |
Description |
|---|---|
The cancel_after_timer class is used
to indicate that an asynchronous operation should be cancelled if not complete
before the specified duration has elapsed.
Header: boost/asio/cancel_after.hpp
Convenience header: boost/asio.hpp