Skip to content

ui::BackgroundHop

Header: winui/ui/Coroutine.hpp.

The awaitable on_background() returns: submits the resumption to a scheduler. Only ever awaited, never named.

BackgroundHop

BackgroundHop(Scheduler& scheduler) noexcept

Resumes on one of scheduler's workers.

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.