proxygen
folly::coro::Wait Class Reference

#include <Wait.h>

Classes

class  promise_type
 

Public Member Functions

 Wait (std::future< void > future)
 
 Wait (Wait &&)=default
 
void detach ()
 
 ~Wait ()
 

Private Attributes

std::future< void > future_
 

Detailed Description

Definition at line 24 of file Wait.h.

Constructor & Destructor Documentation

folly::coro::Wait::Wait ( std::future< void >  future)
inlineexplicit

Definition at line 52 of file Wait.h.

Referenced by folly::coro::Wait::promise_type::get_return_object().

52 : future_(std::move(future)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::future< void > future_
Definition: Wait.h:67
folly::coro::Wait::Wait ( Wait &&  )
default
folly::coro::Wait::~Wait ( )
inline

Definition at line 60 of file Wait.h.

References future_.

60  {
61  if (future_.valid()) {
62  future_.get();
63  }
64  }
std::future< void > future_
Definition: Wait.h:67

Member Function Documentation

void folly::coro::Wait::detach ( )
inline

Definition at line 56 of file Wait.h.

References future_.

56  {
57  future_ = {};
58  }
std::future< void > future_
Definition: Wait.h:67

Member Data Documentation

std::future<void> folly::coro::Wait::future_
private

Definition at line 67 of file Wait.h.

Referenced by detach(), and ~Wait().


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