File indexing completed on 2026-08-17 09:00:18
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_REDIS_IS_TERMINAL_CANCEL_HPP
0010 #define BOOST_REDIS_IS_TERMINAL_CANCEL_HPP
0011
0012 #include <boost/asio/cancellation_type.hpp>
0013
0014 namespace boost::redis::detail {
0015
0016 constexpr bool is_terminal_cancel(asio::cancellation_type_t cancel_state)
0017 {
0018 return (cancel_state & asio::cancellation_type_t::terminal) != asio::cancellation_type_t::none;
0019 }
0020
0021 }
0022
0023 #endif