proxygen
folly::pushmi::operators::defer_fn Struct Reference

#include <defer.h>

Classes

struct  impl
 

Public Member Functions

requires Invocable< F & > auto operator() (F f) const
 

Detailed Description

Definition at line 28 of file defer.h.

Member Function Documentation

requires Invocable<F&> auto folly::pushmi::operators::defer_fn::operator() ( f) const
inline

Definition at line 44 of file defer.h.

References folly::pushmi::operators::defer, f, folly::pushmi::make_single_sender, and folly::gen::move.

44  {
45  struct sender_base : single_sender<> {
46  using properties = properties_t<invoke_result_t<F&>>;
47  };
48  return make_single_sender(sender_base{}, impl<F>{std::move(f)});
49  }
auto f
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::make_single_sender_fn make_single_sender

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