Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::async::DelayAwaiter< Rep, Period > Struct Template Reference

Awaitable that pauses the coroutine thread for the specified duration. More...

#include <Delay.hpp>

+ Collaboration diagram for corium::async::DelayAwaiter< Rep, Period >:

Public Member Functions

constexpr bool await_ready () const noexcept
 
constexpr void await_resume () const noexcept
 
void await_suspend (std::coroutine_handle<> handle) const
 

Public Attributes

std::chrono::duration< Rep, Period > duration
 

Detailed Description

template<typename Rep, typename Period>
struct corium::async::DelayAwaiter< Rep, Period >

Awaitable that pauses the coroutine thread for the specified duration.

Member Function Documentation

◆ await_ready()

template<typename Rep , typename Period >
constexpr bool corium::async::DelayAwaiter< Rep, Period >::await_ready ( ) const
inlineconstexprnoexcept

◆ await_resume()

template<typename Rep , typename Period >
constexpr void corium::async::DelayAwaiter< Rep, Period >::await_resume ( ) const
inlineconstexprnoexcept

◆ await_suspend()

template<typename Rep , typename Period >
void corium::async::DelayAwaiter< Rep, Period >::await_suspend ( std::coroutine_handle<>  handle) const
inline

Member Data Documentation

◆ duration

template<typename Rep , typename Period >
std::chrono::duration<Rep, Period> corium::async::DelayAwaiter< Rep, Period >::duration

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