immediate_executor is supported. (#2672)

This commit is contained in:
Klemens Morgenstern authored and GitHub committed 2023-10-13 05:33:23 -03:00
1 parent 177a1222a6
commit dd875463ff
25 files changed
+475 -219

No files matched your search

@@ -16,7 +16,7 @@
#include <boost/beast/core/read_size.hpp>
#include <boost/beast/core/stream_traits.hpp>
#include <boost/beast/core/detail/is_invocable.hpp>
#include <boost/asio/post.hpp>
#include <boost/asio/dispatch.hpp>
#include <boost/throw_exception.hpp>
namespace boost {
@@ -80,11 +80,13 @@ public:
std::move(*this));
}
step_ = 3;
return net::post(
s_.get_executor(),
beast::bind_front_handler(
std::move(*this), ec, 0));
{
const auto ex = this->get_immediate_executor();
return net::dispatch(
ex,
beast::bind_front_handler(
std::move(*this), ec, 0));
}
case 1:
// upcall
break;