File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ namespace execpools {
3232 }
3333
3434 [[nodiscard]]
35- auto executor () const {
35+ auto get_executor () const {
3636 return executor_;
3737 }
3838
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ namespace {
175175 const auto current_thread_id = std::this_thread::get_id ();
176176
177177 execpools::asio_thread_pool pool{1ul };
178- asioexec::asio_impl::system_timer timer{pool.executor ()};
178+ asioexec::asio_impl::system_timer timer{pool.get_executor ()};
179179 const auto [other_thread_id] =
180180 stdexec::sync_wait (timer.async_wait (asioexec::use_sender) | stdexec::then ([](auto &&...) {
181181 return std::this_thread::get_id ();
@@ -184,6 +184,6 @@ namespace {
184184 REQUIRE (current_thread_id != other_thread_id);
185185
186186 // demo to access underlying execution context
187- asioexec::asio_impl::query (pool.executor (), asioexec::asio_impl::execution::context_t {}).stop ();
187+ asioexec::asio_impl::query (pool.get_executor (), asioexec::asio_impl::execution::context_t {}).stop ();
188188 }
189189} // namespace
You can’t perform that action at this time.
0 commit comments