proxygen
folly::coro::ViaIfAsyncAwaitable< Awaitable > Class Template Reference

#include <ViaIfAsync.h>

Public Member Functions

 ViaIfAsyncAwaitable (folly::Executor *executor, Awaitable &&awaitable) noexcept(std::is_nothrow_move_constructible< Awaitable >::value)
 

Private Attributes

folly::Executorexecutor_
 
Awaitable awaitable_
 

Friends

template<typename Awaitable2 >
auto operator co_await (ViaIfAsyncAwaitable< Awaitable2 > &&awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< Awaitable2 >>
 
template<typename Awaitable2 >
auto operator co_await (ViaIfAsyncAwaitable< Awaitable2 > &awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< Awaitable2 & >>
 
template<typename Awaitable2 >
auto operator co_await (const ViaIfAsyncAwaitable< Awaitable2 > &&awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< const Awaitable2 && >>
 
template<typename Awaitable2 >
auto operator co_await (const ViaIfAsyncAwaitable< Awaitable2 > &awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< const Awaitable2 & >>
 

Detailed Description

template<typename Awaitable>
class folly::coro::ViaIfAsyncAwaitable< Awaitable >

Definition at line 178 of file ViaIfAsync.h.

Constructor & Destructor Documentation

template<typename Awaitable>
folly::coro::ViaIfAsyncAwaitable< Awaitable >::ViaIfAsyncAwaitable ( folly::Executor executor,
Awaitable &&  awaitable 
)
inlineexplicitnoexcept

Definition at line 180 of file ViaIfAsync.h.

185  : executor_(executor), awaitable_(static_cast<Awaitable&&>(awaitable)) {}

Friends And Related Function Documentation

template<typename Awaitable>
template<typename Awaitable2 >
auto operator co_await ( ViaIfAsyncAwaitable< Awaitable2 > &&  awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< Awaitable2 >>
friend
template<typename Awaitable>
template<typename Awaitable2 >
auto operator co_await ( ViaIfAsyncAwaitable< Awaitable2 > &  awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< Awaitable2 & >>
friend
template<typename Awaitable>
template<typename Awaitable2 >
auto operator co_await ( const ViaIfAsyncAwaitable< Awaitable2 > &&  awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< const Awaitable2 && >>
friend
template<typename Awaitable>
template<typename Awaitable2 >
auto operator co_await ( const ViaIfAsyncAwaitable< Awaitable2 > &  awaitable) -> ViaIfAsyncAwaiter< folly::coro::awaiter_type_t< const Awaitable2 & >>
friend

Member Data Documentation

template<typename Awaitable>
Awaitable folly::coro::ViaIfAsyncAwaitable< Awaitable >::awaitable_
private

Definition at line 207 of file ViaIfAsync.h.

template<typename Awaitable>
folly::Executor* folly::coro::ViaIfAsyncAwaitable< Awaitable >::executor_
private

Definition at line 206 of file ViaIfAsync.h.


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