proxygen
folly::pushmi::new_thread_executor Struct Reference

#include <new_thread.h>

Public Types

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

Public Member Functions

new_thread_executor executor ()
 
requires Receiver< Out > void submit (Out out)
 

Detailed Description

Definition at line 27 of file new_thread.h.

Member Typedef Documentation

Member Function Documentation

new_thread_executor folly::pushmi::new_thread_executor::executor ( )
inline

Definition at line 35 of file new_thread.h.

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

35  {
36  return {};
37  }
requires Receiver<Out> void folly::pushmi::new_thread_executor::submit ( Out  out)
inline

Definition at line 40 of file new_thread.h.

References folly::gen::move, submit, folly::pushmi::t, tr, and folly::pushmi::trampoline().

40  {
41  std::thread t{[out = std::move(out)]() mutable {
44  }};
45  // pass ownership of thread to out
46  t.detach();
47  }
requires Tuple && t
detail::delegator< E > trampoline()
Definition: trampoline.h:261
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
auto tr

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