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

Method dispatch

test/beast/core/bind_handler.cpp:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219 template<class F, class Alloc>
220 void
221 dispatch(F&& f, Alloc const& a)
222 {
223 s_.on_invoke();
224 net::prefer(ex_,
225 net::execution::blocking.possibly,
226 net::execution::allocator(a)).execute(std::forward<F>(f));
227 // previously equivalent to
228 // ex_.dispatch(std::forward<F>(f), a);
229 }
230
231 template<class F, class Alloc>
232 void

Callers

nothing calls this directly

Calls 3

allocatorClass · 0.85
on_invokeMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected