LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::detail::EitherAwaiter< L, R, ErrorHandler > Struct Template Reference

#include "either.h"

+ Collaboration diagram for LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >:

Public Member Functions

bool await_ready () const noexcept
 
void await_suspend (auto handle)
 
await_resume () const noexcept
 

Public Attributes

Either< L, R > Either_
 
EitherAwaiterErrorHandler< ErrorHandler > Handler_ {}
 

Detailed Description

template<typename L, typename R, typename ErrorHandler = void>
struct LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >

Definition at line 75 of file either.h.

Member Function Documentation

◆ await_ready()

template<typename L, typename R, typename ErrorHandler = void>
bool LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::await_ready ( ) const
inlinenoexcept

Definition at line 80 of file either.h.

References Either_.

◆ await_resume()

template<typename L, typename R, typename ErrorHandler = void>
R LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::await_resume ( ) const
inlinenoexcept

Definition at line 91 of file either.h.

References Either_.

◆ await_suspend()

template<typename L, typename R, typename ErrorHandler = void>
void LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::await_suspend ( auto handle)
inline

Definition at line 85 of file either.h.

References Either_, Handler_, and LC::Util::detail::TerminateLeftyCoroutine().

+ Here is the call graph for this function:

Member Data Documentation

◆ Either_

template<typename L, typename R, typename ErrorHandler = void>
Either<L, R> LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::Either_

Definition at line 77 of file either.h.

Referenced by await_ready(), await_resume(), and await_suspend().

◆ Handler_

template<typename L, typename R, typename ErrorHandler = void>
EitherAwaiterErrorHandler<ErrorHandler> LC::Util::detail::EitherAwaiter< L, R, ErrorHandler >::Handler_ {}

Definition at line 78 of file either.h.

Referenced by await_suspend().


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