pp#L143" class="code-snippet-url" target="_blank">View this code on Github</a></div>


<p>To use, simply wrap the third party completion token with <code>as_result</code> to cause
ASIO to return from <code>co_await</code> a <code>result</code> instead of throwing exceptions on
failure:</p>
<div class="highlight"><pre class="chroma"><code class="language-c++" data-lang="c++"><span class="kt">char</span> <span class="n">buffer</span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span>