/* Copyright (c) 2018-2023 Marcelo Zimbres Silva (mzimbres@gmail.com) * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE.txt) */ #ifndef BOOST_REDIS_IGNORE_HPP #define BOOST_REDIS_IGNORE_HPP #include #include #include namespace boost::redis { /** @brief Type used to ignore responses. * @ingroup high-level-api * * For example * * @code * response resp; * @endcode * * will ignore the first and third responses. RESP3 errors won't be * ignore but will cause `async_exec` to complete with an error. */ using ignore_t = std::decay_t; /** @brief Global ignore object. * @ingroup high-level-api * * Can be used to ignore responses to a request * * @code * conn->async_exec(req, ignore, ...); * @endcode * * RESP3 errors won't be ignore but will cause `async_exec` to * complete with an error. */ extern ignore_t ignore; } // boost::redis #endif // BOOST_REDIS_IGNORE_HPP