boost::asio::cancel_after
cancel_after overloads
Synopses
Declared in <boost/asio/cancel_after.hpp>
Create a partial completion token adapter that cancels an operation if not complete before the specified relative timeout has elapsed.
template<
typename Rep,
typename Period>
[[nodiscard]]
partial_cancel_after<std::chrono::steady_clock>
cancel_after(
chrono::duration<Rep, Period> const& timeout,
cancellation_type_t cancel_type = cancellation_type::terminal);
Adapt a completion_token to cancel an operation if not complete before the specified relative timeout has elapsed.
template<
typename Rep,
typename Period,
typename CompletionToken>
[[nodiscard]]
cancel_after_t<decay_t<CompletionToken>, std::chrono::steady_clock>
cancel_after(
chrono::duration<Rep, Period> const& timeout,
CompletionToken&& completion_token);
Adapt a completion_token to cancel an operation if not complete before the specified relative timeout has elapsed.
template<
typename Rep,
typename Period,
typename CompletionToken>
[[nodiscard]]
cancel_after_t<decay_t<CompletionToken>, std::chrono::steady_clock>
cancel_after(
chrono::duration<Rep, Period> const& timeout,
cancellation_type_t cancel_type,
CompletionToken&& completion_token);
Create a partial completion token adapter that cancels an operation if not complete before the specified relative timeout has elapsed.
template<
typename Clock,
typename WaitTraits,
typename Executor,
typename Rep,
typename Period>
[[nodiscard]]
partial_cancel_after_timer<Clock, WaitTraits, Executor>
cancel_after(
basic_waitable_timer<Clock, WaitTraits, Executor>& timer,
chrono::duration<Rep, Period> const& timeout,
cancellation_type_t cancel_type = cancellation_type::terminal);
Adapt a completion_token to cancel an operation if not complete before the specified relative timeout has elapsed.
template<
typename Clock,
typename WaitTraits,
typename Executor,
typename Rep,
typename Period,
typename CompletionToken>
[[nodiscard]]
cancel_after_timer<decay_t<CompletionToken>, Clock, WaitTraits, Executor>
cancel_after(
basic_waitable_timer<Clock, WaitTraits, Executor>& timer,
chrono::duration<Rep, Period> const& timeout,
CompletionToken&& completion_token);
Adapt a completion_token to cancel an operation if not complete before the specified relative timeout has elapsed.
template<
typename Clock,
typename WaitTraits,
typename Executor,
typename Rep,
typename Period,
typename CompletionToken>
[[nodiscard]]
cancel_after_timer<decay_t<CompletionToken>, std::chrono::steady_clock>
cancel_after(
basic_waitable_timer<Clock, WaitTraits, Executor>& timer,
chrono::duration<Rep, Period> const& timeout,
cancellation_type_t cancel_type,
CompletionToken&& completion_token);
Created with MrDocs