proxygen
folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec > Struct Template Reference

Public Member Functions

requires ReceiveValue< Out, typename std::iterator_traits< I >::value_type > void operator() (Out out) const
 

Public Attributes

begin_
 
S end_
 
Exec exec_
 

Detailed Description

template<class I, class S, class Exec>
struct folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec >

Definition at line 140 of file from.h.

Member Function Documentation

template<class I , class S , class Exec >
requires ReceiveValue< Out, typename std::iterator_traits<I>::value_type> void folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec >::operator() ( Out  out) const
inline

Definition at line 148 of file from.h.

References end_, folly::pushmi::make_receiver, folly::gen::move, folly::pushmi::PUSHMI_TEMPLATE(), folly::pushmi::requires(), folly::pushmi::set_starting, and submit.

148  {
149  using Producer = flow_from_producer<I, S, Out, Exec>;
150  auto p = std::make_shared<Producer>(
151  begin_, end_, std::move(out), exec_, false);
152 
154  exec_, make_receiver([p](auto) {
155  // pass reference for cancellation.
156  set_starting(p->out, make_receiver(flow_from_up<Producer>{p}));
157  }));
158  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr __adl::set_starting_fn set_starting
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_receiver_fn make_receiver

Member Data Documentation

template<class I , class S , class Exec >
I folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec >::begin_

Definition at line 141 of file from.h.

template<class I , class S , class Exec >
S folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec >::end_

Definition at line 142 of file from.h.

template<class I , class S , class Exec >
Exec folly::pushmi::operators::flow_from_fn::out_impl< I, S, Exec >::exec_
mutable

Definition at line 143 of file from.h.


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