Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::AsyncTimer Class Reference

One-shot absolute millisecond wait on the existing scheduler. More...

#include <async.hpp>

Public Member Functions

constexpr bool await_ready () const noexcept
bool await_suspend (std::coroutine_handle< UiTask::promise_type > frame)
std::expected< void, AsyncError > await_resume () noexcept

Friends

class UiAsyncContext
struct ui::detail::AsyncAccess

Detailed Description

One-shot absolute millisecond wait on the existing scheduler.

Member Function Documentation

◆ await_ready()

bool portals::AsyncTimer::await_ready ( ) const
inlineconstexprnoexcept
Returns
False, including already-due deadlines: dispatch owns timer delivery.

◆ await_resume()

std::expected< void, AsyncError > portals::AsyncTimer::await_resume ( )
noexcept
Returns
Success after the due callback or typed registration/cancellation failure.

◆ await_suspend()

bool portals::AsyncTimer::await_suspend ( std::coroutine_handle< UiTask::promise_type > frame)
Parameters
frameAdopted UI coroutine to suspend.
Returns
True when registered, false on typed rejection.

The documentation for this class was generated from the following file: