2
0
mirror of https://github.com/boostorg/redis.git synced 2026-01-19 04:42:09 +00:00

Pass the adapter directly to async_exec.

This commit is contained in:
Marcelo Zimbres
2022-05-28 21:19:00 +02:00
parent 485bdc316b
commit ebef2f9e23
9 changed files with 207 additions and 173 deletions

View File

@@ -46,8 +46,8 @@ int main()
auto const res = resv.resolve("127.0.0.1", "55555");
auto ep = *std::begin(res);
int n = 100;
for (int i = 0; i < 100; ++i)
int n = 10000;
for (int i = 0; i < 500; ++i)
net::co_spawn(ioc, example(ep, "Some message\n", n), net::detached);
ioc.run();