proxygen
folly::coro::AwaitableReady< T > Class Template Reference

#include <Utils.h>

Public Member Functions

 AwaitableReady (T value) noexcept(std::is_nothrow_move_constructible< T >::value)
 
bool await_ready () noexcept
 
void await_suspend (std::experimental::coroutine_handle<>) noexcept
 
T await_resume () noexcept(std::is_nothrow_move_constructible< T >::value)
 

Private Attributes

T value_
 

Detailed Description

template<typename T>
class folly::coro::AwaitableReady< T >

Definition at line 31 of file Utils.h.

Constructor & Destructor Documentation

template<typename T >
folly::coro::AwaitableReady< T >::AwaitableReady ( T  value)
inlineexplicitnoexcept

Definition at line 33 of file Utils.h.

35  : value_(static_cast<T&&>(value)) {}
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)

Member Function Documentation

template<typename T >
bool folly::coro::AwaitableReady< T >::await_ready ( )
inlinenoexcept

Definition at line 37 of file Utils.h.

37  {
38  return true;
39  }
template<typename T >
T folly::coro::AwaitableReady< T >::await_resume ( )
inlinenoexcept

Definition at line 43 of file Utils.h.

References folly::T, and folly::coro::AwaitableReady< T >::value_.

43  {
44  return static_cast<T&&>(value_);
45  }
folly::std T
template<typename T >
void folly::coro::AwaitableReady< T >::await_suspend ( std::experimental::coroutine_handle<>  )
inlinenoexcept

Definition at line 41 of file Utils.h.

41 {}

Member Data Documentation

template<typename T >
T folly::coro::AwaitableReady< T >::value_
private

Definition at line 48 of file Utils.h.

Referenced by folly::coro::AwaitableReady< T >::await_resume().


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