Skip to content

Commit f9d0679

Browse files
committed
Splits the multiplexer out of the connection.
1 parent 109248d commit f9d0679

File tree

9 files changed

+766
-426
lines changed

9 files changed

+766
-426
lines changed

include/boost/redis/adapter/any_adapter.hpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818

1919
namespace boost::redis {
2020

21-
namespace detail {
22-
23-
// Forward decl
24-
template <class Executor>
25-
class basic_connection;
26-
27-
}
28-
2921
/** @brief A type-erased reference to a response.
3022
* @ingroup high-level-api
3123
*
@@ -39,9 +31,9 @@ class basic_connection;
3931
* co_await conn.async_exec(req, any_response(resp));
4032
* ```
4133
*/
42-
class any_adapter
43-
{
44-
using fn_type = std::function<void(std::size_t, resp3::basic_node<std::string_view> const&, system::error_code&)>;
34+
class any_adapter {
35+
public:
36+
using fn_type = std::function<void(std::size_t, resp3::node_view const&, system::error_code&)>;
4537

4638
struct impl_t {
4739
fn_type adapt_fn;
@@ -60,7 +52,6 @@ class any_adapter
6052
template <class Executor>
6153
friend class basic_connection;
6254

63-
public:
6455
/**
6556
* @brief Constructor.
6657
*

0 commit comments

Comments
 (0)