| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /* 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 <boost/system/result.hpp>
- #include <tuple>
- #include <type_traits>
- namespace boost::redis {
- /** @brief Type used to ignore responses.
- *
- * For example:
- *
- * @code
- * response<ignore_t, std::string, ignore_t> 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<decltype(std::ignore)>;
- /** @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
|