7#include "awaitable_stop_token_intf.hpp"
8#if HI_OPERATING_SYSTEM == HI_OS_WINDOWS
9#include "loop_win32_intf.hpp"
11#include "../macros.hpp"
17hi_export_module(hikogui.dispatch : awaitable_stop_token_impl);
19hi_export
namespace hi::inline
v1 {
21inline void awaitable_stop_token::callback_wrapper::operator()() noexcept
25 await_loop->post_function([
this]() {
26 if (handle and not handle.done()) {
32inline void awaitable_stop_token::await_suspend(std::coroutine_handle<> handle)
noexcept
34 _stop_callback_ptr = std::make_unique<std::stop_callback<callback_wrapper>>(_stop_token, callback_wrapper{&loop::local(), handle});
DOXYGEN BUG.
Definition algorithm_misc.hpp:20