Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-17 09:00:18

0001 //
0002 // Copyright (c) 2025 Marcelo Zimbres Silva (mzimbres@gmail.com),
0003 // Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0004 //
0005 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0006 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
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 }  // namespace boost::redis::detail
0022 
0023 #endif