forked from boostorg/beast
1 parent
bfc9c71671
commit
523191d228
3 files changed
+374
No files matched your search
@@ -164,8 +164,15 @@ public:
|
||||
auto ex = co_await net::this_coro::executor;
|
||||
auto s1 = test::stream(ex);
|
||||
auto s2 = net::use_awaitable.as_default_on(std::move(s1));
|
||||
#ifdef BOOST_ASIO_HAS_DEFAULT_FUNCTION_TEMPLATE_ARGUMENTS
|
||||
auto bt = co_await s2.async_read_some(b);
|
||||
bt = co_await s2.async_write_some(b);
|
||||
#else
|
||||
auto bt = co_await s2.async_read_some(b,
|
||||
net::use_awaitable);
|
||||
bt = co_await s2.async_write_some(b,
|
||||
net::use_awaitable);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user