Skip to content

ui::UiThreadHop

Header: winui/ui/Coroutine.hpp.

The awaitable on_ui_thread() returns: posts the resumption to the window through WindowRef. Only ever awaited, never named.

UiThreadHop

UiThreadHop(WindowRef window) noexcept

That Window, while it exists.

await_ready

bool await_ready() const noexcept

Never ready: the coroutine always suspends.

await_suspend

void await_suspend(std::coroutine_handle<> coroutine) const

Hands coroutine over to be resumed there.

await_resume

void await_resume() const noexcept

Nothing to return.