proxygen
folly::pushmi::strand_executor_factory_fn< E, ExecutorFactory > Class Template Reference

#include <strand.h>

Public Member Functions

 strand_executor_factory_fn (ExecutorFactory ef)
 
auto operator() () const
 

Private Attributes

ExecutorFactory ef_
 

Detailed Description

template<class E, class ExecutorFactory>
class folly::pushmi::strand_executor_factory_fn< E, ExecutorFactory >

Definition at line 218 of file strand.h.

Constructor & Destructor Documentation

template<class E , class ExecutorFactory >
folly::pushmi::strand_executor_factory_fn< E, ExecutorFactory >::strand_executor_factory_fn ( ExecutorFactory  ef)
inlineexplicit

Definition at line 222 of file strand.h.

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

Member Function Documentation

template<class E , class ExecutorFactory >
auto folly::pushmi::strand_executor_factory_fn< E, ExecutorFactory >::operator() ( ) const
inline

Definition at line 224 of file strand.h.

References folly::gen::move.

224  {
225  auto ex = ef_();
226  auto queue = std::make_shared<strand_queue<E, decltype(ex)>>(std::move(ex));
227  return strand_executor<E, decltype(ex)>{queue};
228  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<class E , class ExecutorFactory >
ExecutorFactory folly::pushmi::strand_executor_factory_fn< E, ExecutorFactory >::ef_
private

Definition at line 219 of file strand.h.


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