proxygen
folly::coro::detail::InlineTaskPromiseBase Class Reference

#include <InlineTask.h>

Inheritance diagram for folly::coro::detail::InlineTaskPromiseBase:
folly::coro::detail::InlineTaskPromise< T > folly::coro::detail::InlineTaskPromise< void >

Classes

struct  FinalAwaiter
 

Public Member Functions

std::experimental::suspend_always initial_suspend () noexcept
 
auto final_suspend () noexcept
 
void set_continuation (std::experimental::coroutine_handle<> continuation) noexcept
 

Protected Member Functions

 InlineTaskPromiseBase () noexcept=default
 
 InlineTaskPromiseBase (const InlineTaskPromiseBase &)=delete
 
 InlineTaskPromiseBase (InlineTaskPromiseBase &&)=delete
 
InlineTaskPromiseBaseoperator= (const InlineTaskPromiseBase &)=delete
 
InlineTaskPromiseBaseoperator= (InlineTaskPromiseBase &&)=delete
 

Private Attributes

std::experimental::coroutine_handle continuation_
 

Detailed Description

Definition at line 44 of file InlineTask.h.

Constructor & Destructor Documentation

folly::coro::detail::InlineTaskPromiseBase::InlineTaskPromiseBase ( )
protecteddefaultnoexcept
folly::coro::detail::InlineTaskPromiseBase::InlineTaskPromiseBase ( const InlineTaskPromiseBase )
protecteddelete
folly::coro::detail::InlineTaskPromiseBase::InlineTaskPromiseBase ( InlineTaskPromiseBase &&  )
protecteddelete

Member Function Documentation

auto folly::coro::detail::InlineTaskPromiseBase::final_suspend ( )
inlinenoexcept

Definition at line 73 of file InlineTask.h.

73  {
74  return FinalAwaiter{};
75  }
std::experimental::suspend_always folly::coro::detail::InlineTaskPromiseBase::initial_suspend ( )
inlinenoexcept

Definition at line 69 of file InlineTask.h.

69  {
70  return {};
71  }
InlineTaskPromiseBase& folly::coro::detail::InlineTaskPromiseBase::operator= ( const InlineTaskPromiseBase )
protecteddelete
InlineTaskPromiseBase& folly::coro::detail::InlineTaskPromiseBase::operator= ( InlineTaskPromiseBase &&  )
protecteddelete
void folly::coro::detail::InlineTaskPromiseBase::set_continuation ( std::experimental::coroutine_handle<>  continuation)
inlinenoexcept

Definition at line 77 of file InlineTask.h.

References continuation_.

78  {
79  assert(!continuation_);
80  continuation_ = continuation;
81  }
std::experimental::coroutine_handle continuation_
Definition: InlineTask.h:84

Member Data Documentation

std::experimental::coroutine_handle folly::coro::detail::InlineTaskPromiseBase::continuation_
private

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