/* Copyright (c) 2018-2024 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. * * For example: * * @code * response resp; * @endcode * * This 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. * * Can be used to ignore responses to a request. For example: * * @code * co_await 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; } // namespace boost::redis #endif // BOOST_REDIS_IGNORE_HPP