MCPcopy Create free account
hub / github.com/boostorg/asio / never_blocking_executor

Class never_blocking_executor

test/execution/prefer_only.cpp:81–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79} // namespace boost
80
81struct never_blocking_executor
82{
83 static constexpr execution::blocking_t::never_t
84 query(execution::blocking_t) noexcept
85 {
86 return execution::blocking_t::never_t();
87 }
88
89 template <typename F>
90 void execute(const F&) const
91 {
92 ++never_blocking_count;
93 }
94
95 friend bool operator==(const never_blocking_executor&,
96 const never_blocking_executor&) noexcept
97 {
98 return true;
99 }
100
101 friend bool operator!=(const never_blocking_executor&,
102 const never_blocking_executor&) noexcept
103 {
104 return false;
105 }
106};
107
108namespace boost {
109namespace asio {

Calls

no outgoing calls

Tested by

no test coverage detected