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);
19hi_inline
void awaitable_stop_token::callback_wrapper::operator()()
noexcept
23 await_loop->post_function([=]() {
24 if (handle
and not handle.done()) {
30hi_inline
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
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378