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

Method testAsioHandlerInvoke

test/beast/websocket/write.cpp:635–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 };
634
635 void
636 testAsioHandlerInvoke()
637 {
638 // make sure things compile, also can set a
639 // breakpoint in asio_handler_invoke to make sure
640 // it is instantiated.
641 {
642 net::io_context ioc;
643 net::strand<
644 net::io_context::executor_type> s(
645 ioc.get_executor());
646 stream<test::stream> ws{ioc};
647 flat_buffer b;
648 ws.async_write(net::const_buffer{},
649 net::bind_executor(s,
650 copyable_handler{}));
651 }
652 }
653
654 /*
655 https://github.com/boostorg/beast/issues/227

Callers

nothing calls this directly

Calls 1

get_executorMethod · 0.45

Tested by

no test coverage detected