proxygen
folly::pushmi::detail::get_fn< T > Struct Template Reference

#include <submit.h>

Classes

struct  on_error_impl
 
struct  on_value_impl
 

Public Member Functions

requires Sender< In > T operator() (In in) const
 

Detailed Description

template<class T>
struct folly::pushmi::detail::get_fn< T >

Definition at line 341 of file submit.h.

Member Function Documentation

template<class T >
requires Sender<In> T folly::pushmi::detail::get_fn< T >::operator() ( In  in) const
inline

Definition at line 365 of file submit.h.

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

365  {
369  on_value_impl{&result_}, on_error_impl{&ep_});
370  using Out = decltype(out);
371  static_assert(
372  SenderTo<In, Out>,
373  "'In' does not deliver value compatible with 'T' to 'Out'");
374  std::conditional_t<AlwaysBlocking<In>, submit_fn, blocking_submit_fn>{}(
375  std::move(out))(std::move(in));
376  if (!!ep_) {
378  }
379  return std::move(*result_);
380  }
void rethrow_exception(std::exception_ptr ep)
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_receiver_fn make_receiver

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