@@ -54,7 +54,7 @@ auto co_main(config const& cfg) -> net::awaitable<void>
54
54
response< std::string > resp;
55
55
56
56
// Executes the request.
57
- co_await conn->async_exec(req, resp, net::deferred );
57
+ co_await conn->async_exec(req, resp);
58
58
conn->cancel();
59
59
60
60
std::cout << "PING: " << std::get<0>(resp).value() << std::endl;
@@ -98,7 +98,7 @@ receiver(std::shared_ptr<connection> conn) -> net::awaitable<void>
98
98
while (conn->will_reconnect()) {
99
99
100
100
// Reconnect to channels.
101
- co_await conn->async_exec(req, ignore, net::deferred );
101
+ co_await conn->async_exec(req, ignore);
102
102
103
103
// Loop reading Redis pushes.
104
104
for (;;) {
@@ -246,14 +246,14 @@ response<
246
246
Where both are passed to ` async_exec ` as showed elsewhere
247
247
248
248
``` cpp
249
- co_await conn->async_exec (req, resp, net::deferred );
249
+ co_await conn->async_exec (req, resp);
250
250
```
251
251
252
252
If the intention is to ignore responses altogether use `ignore`
253
253
254
254
```cpp
255
255
// Ignores the response
256
- co_await conn->async_exec(req, ignore, net::deferred );
256
+ co_await conn->async_exec(req, ignore);
257
257
```
258
258
259
259
Responses that contain nested aggregates or heterogeneous data
@@ -296,7 +296,7 @@ response<
296
296
...
297
297
> resp;
298
298
299
- co_await conn->async_exec (req, resp, net::deferred );
299
+ co_await conn->async_exec (req, resp);
300
300
```
301
301
302
302
Everything else stays pretty much the same.
@@ -336,7 +336,7 @@ response<
336
336
exec_resp_type, // exec
337
337
> resp;
338
338
339
- co_await conn->async_exec (req, resp, net::deferred );
339
+ co_await conn->async_exec (req, resp);
340
340
```
341
341
342
342
For a complete example see cpp20_containers.cpp.
@@ -384,7 +384,7 @@ using other types
384
384
``` cpp
385
385
// Receives any RESP3 simple or aggregate data type.
386
386
boost::redis::generic_response resp;
387
- co_await conn->async_exec (req, resp, net::deferred );
387
+ co_await conn->async_exec (req, resp);
388
388
```
389
389
390
390
For example, suppose we want to retrieve a hash data structure
0 commit comments