MCPcopy Create free account
hub / github.com/alibaba/async_simple / asio_handler_invoke

Function asio_handler_invoke

demo_example/asio/asio/impl/use_future.hpp:663–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661
662template <typename Function, typename Signature, typename Allocator>
663inline void asio_handler_invoke(Function& f,
664 promise_handler<Signature, Allocator>* h)
665{
666 typename promise_handler<Signature, Allocator>::executor_type
667 ex(h->get_executor());
668 asio::dispatch(ex, promise_function_wrapper<Function>(f));
669}
670
671template <typename Function, typename Signature, typename Allocator>
672inline void asio_handler_invoke(const Function& f,

Callers

nothing calls this directly

Calls 2

dispatchFunction · 0.70
get_executorMethod · 0.45

Tested by

no test coverage detected