proxygen
inline_time_executor Struct Reference

Public Types

using properties = mi::property_set< mi::is_time<>, mi::is_executor<>, mi::is_fifo_sequence<>, mi::is_always_blocking<>, mi::is_single<>>
 

Public Member Functions

std::chrono::system_clock::time_point top ()
 
auto executor ()
 
template<class Out >
void submit (std::chrono::system_clock::time_point at, Out out)
 

Detailed Description

Definition at line 81 of file PushmiBenchmarks.cpp.

Member Typedef Documentation

Member Function Documentation

auto inline_time_executor::executor ( )
inline

Definition at line 92 of file PushmiBenchmarks.cpp.

92  {
93  return *this;
94  }
template<class Out >
void inline_time_executor::submit ( std::chrono::system_clock::time_point  at,
Out  out 
)
inline

Definition at line 96 of file PushmiBenchmarks.cpp.

References folly::pushmi::set_value.

96  {
97  std::this_thread::sleep_until(at);
98  ::mi::set_value(out, *this);
99  }
PUSHMI_INLINE_VAR constexpr __adl::set_value_fn set_value
std::chrono::system_clock::time_point inline_time_executor::top ( )
inline

Definition at line 89 of file PushmiBenchmarks.cpp.

References now().

89  {
91  }
std::chrono::steady_clock::time_point now()

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