forked from boostorg/beast
Tidy up calls to post()
This commit is contained in:
1 parent
2fd3e46b20
commit
5eaa2be85e
11 files changed
+37
-50
No files matched your search
@@ -170,10 +170,11 @@ operator()(
|
||||
|
||||
upcall:
|
||||
if(! cont_)
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(h_),
|
||||
ec, bytes_transferred_));
|
||||
{
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
boost::asio::post(
|
||||
bind_handler(std::move(*this), ec));
|
||||
}
|
||||
h_(ec, bytes_transferred_);
|
||||
}
|
||||
}
|
||||
@@ -290,7 +291,7 @@ operator()(
|
||||
if(Condition{}(p_))
|
||||
{
|
||||
BOOST_ASIO_CORO_YIELD
|
||||
boost::asio::post(s_.get_executor(),
|
||||
boost::asio::post(
|
||||
bind_handler(std::move(*this), ec));
|
||||
goto upcall;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user