| 183 | |
| 184 | template<class F> |
| 185 | void execute(F&& f) const |
| 186 | { |
| 187 | if (blocking_ == net::execution::blocking.possibly) |
| 188 | { |
| 189 | s_.on_invoke(); |
| 190 | ex_.execute(std::forward<F>(f)); |
| 191 | } |
| 192 | else |
| 193 | { |
| 194 | // shouldn't be called since the enclosing |
| 195 | // networking wrapper only uses dispatch |
| 196 | BEAST_FAIL(); |
| 197 | } |
| 198 | } |
| 199 | #endif |
| 200 | #if !defined(BOOST_ASIO_NO_TS_EXECUTORS) |
| 201 | net::execution_context& |