mirror of
https://github.com/boostorg/redis.git
synced 2026-01-19 04:42:09 +00:00
30 lines
722 B
C++
30 lines
722 B
C++
/* Copyright (c) 2018-2022 Marcelo Zimbres Silva (mzimbres@gmail.com)
|
|
*
|
|
* Distributed under the Boost Software License, Version 1.0. (See
|
|
* accompanying file LICENSE.txt)
|
|
*/
|
|
|
|
#ifndef AEDIS_OPERATION_HPP
|
|
#define AEDIS_OPERATION_HPP
|
|
|
|
namespace aedis {
|
|
|
|
/** \brief Connection operations that can be cancelled.
|
|
* \ingroup high-level-api
|
|
*
|
|
* The operations listed below can be passed to the
|
|
* `aedis::connection::cancel` member function.
|
|
*/
|
|
enum class operation {
|
|
/// Refers to `connection::async_exec` operations.
|
|
exec,
|
|
/// Refers to `connection::async_run` operations.
|
|
run,
|
|
/// Refers to `connection::async_receive_push` operations.
|
|
receive_push,
|
|
};
|
|
|
|
} // aedis
|
|
|
|
#endif // AEDIS_OPERATION_HPP
|