7#include "awaitable_stop_token_intf.hpp"
8#include "loop_win32_intf.hpp"
9#include "../macros.hpp"
15hi_export_module(hikogui.dispatch : awaitable_stop_token_impl);
17hi_export
namespace hi::inline
v1 {
19inline void awaitable_stop_token::callback_wrapper::operator()() noexcept
23 await_loop->post_function([
this]() {
24 if (handle and not handle.done()) {
30inline void awaitable_stop_token::await_suspend(std::coroutine_handle<> handle)
noexcept
32 _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