HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
v1::notifier< R(Args...)>::awaiter_type Class Reference

#include <hikogui/dispatch/notifier.hpp>

Public Member Functions

constexpr awaiter_type (awaiter_type &&) noexcept=default
 
constexpr awaiter_type & operator= (awaiter_type const &) noexcept=delete
 
constexpr awaiter_type (awaiter_type const &other) noexcept
 Copy the awaitable.
 
constexpr awaiter_type & operator= (awaiter_type &&other) noexcept
 Copy the awaitable.
 
constexpr awaiter_type (notifier &notifier) noexcept
 
constexpr bool await_ready () const noexcept
 
void await_suspend (std::coroutine_handle<> handle) noexcept
 
constexpr void await_resume () const noexcept
 
constexpr auto await_resume () const noexcept
 
constexpr auto await_resume () const noexcept
 

Detailed Description

template<typename R, typename... Args>
class v1::notifier< R(Args...)>::awaiter_type

An awaiter object which can wait on a notifier.

When this object is awaited on a callback to this object is created with the associated notifier. This allows a co-routine that awaits on this object to be resumed.

Constructor & Destructor Documentation

◆ awaiter_type()

template<typename R , typename... Args>
constexpr v1::notifier< R(Args...)>::awaiter_type::awaiter_type ( awaiter_type const & other)
inlineconstexprnoexcept

Copy the awaitable.

This only copies the pointer to the notifier. The arguments to the notifier and the callback object are unset.

Member Function Documentation

◆ operator=()

template<typename R , typename... Args>
constexpr awaiter_type & v1::notifier< R(Args...)>::awaiter_type::operator= ( awaiter_type && other)
inlineconstexprnoexcept

Copy the awaitable.

This only copies the pointer to the notifier. The arguments to the notifier and the callback object are reset.


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