proxygen
folly::pushmi::pool_executor< Executor > Struct Template Reference

#include <pool.h>

Public Types

using properties = property_set< is_sender<>, is_executor<>, is_never_blocking<>, is_concurrent_sequence<>, is_single<>>
 
using e_t = Executor
 

Public Member Functions

 pool_executor (e_t e)
 
auto executor ()
 
requires Receiver< Out > void submit (Out out) const
 

Public Attributes

e_t e
 

Detailed Description

template<class Executor>
struct folly::pushmi::pool_executor< Executor >

Definition at line 39 of file pool.h.

Member Typedef Documentation

template<class Executor >
using folly::pushmi::pool_executor< Executor >::e_t = Executor

Definition at line 47 of file pool.h.

Definition at line 45 of file pool.h.

Constructor & Destructor Documentation

template<class Executor >
folly::pushmi::pool_executor< Executor >::pool_executor ( e_t  e)
inlineexplicit

Definition at line 49 of file pool.h.

49 : e(std::move(e)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class Executor >
auto folly::pushmi::pool_executor< Executor >::executor ( )
inline

Definition at line 50 of file pool.h.

References folly::pushmi::PUSHMI_TEMPLATE(), and folly::pushmi::requires().

50  {
51  return *this;
52  }
template<class Executor >
requires Receiver<Out> void folly::pushmi::pool_executor< Executor >::submit ( Out  out) const
inline

Definition at line 55 of file pool.h.

References folly::gen::move, and folly::pushmi::set_value.

55  {
56  e.execute(
57  [e = *this, out = std::move(out)]() mutable { set_value(out, e); });
58  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr __adl::set_value_fn set_value

Member Data Documentation

template<class Executor >
e_t folly::pushmi::pool_executor< Executor >::e

Definition at line 48 of file pool.h.


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