r/doc/src/snippets/boost-only/asio_integration.cpp#L118" class="code-snippet-url" target="_blank">View this code on Github</a></div>


<p>The tricky part to understand is that our <code>async_result</code> specialisation inherits
from an <code>async_result</code> for the supplied completion token type with a completion
handler which consumes a <code>result&lt;T&gt;</code>. Our <code>async_result</code> is actually therefore
the base <code>async_result</code>, but we layer on top a <code>completion_handler_t