| 79 | } // namespace boost |
| 80 | |
| 81 | struct 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 | |
| 108 | namespace boost { |
| 109 | namespace asio { |
no outgoing calls
no test coverage detected