forked from boostorg/beast
Tidy up calls to post()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,6 @@ operator()()
|
||||
{
|
||||
BOOST_ASSERT(! f.invoked);
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this), ec, 0));
|
||||
}
|
||||
if(f.invoked)
|
||||
@@ -153,7 +152,6 @@ operator()()
|
||||
BOOST_ASSERT(sr_.is_done());
|
||||
}
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this), ec, 0));
|
||||
}
|
||||
|
||||
@@ -284,7 +282,6 @@ operator()(
|
||||
{
|
||||
state_ = 1;
|
||||
return boost::asio::post(
|
||||
s_.get_executor(),
|
||||
bind_handler(std::move(*this), ec, 0));
|
||||
}
|
||||
state_ = 2;
|
||||
|
||||
Reference in New Issue
Block a user