MCPcopy Create free account
hub / github.com/boostorg/beast / execute

Method execute

test/beast/core/bind_handler.cpp:185–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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&

Callers 1

dispatchMethod · 0.45

Calls 1

on_invokeMethod · 0.80

Tested by

no test coverage detected