iv>
<p>
            Cancel all asynchronous operations associated with the descriptor.
          </p>
<pre class="programlisting">void cancel(
    boost::system::error_code &amp; ec);
</pre>
<p>
            This function causes all outstanding asynchronous read or write operations
            to finish immediately, and the handlers for cancelled operations will
            be passed the <code class="computeroutput">boost::asio::error::operation_aborted</code> error.
          </p>
<h6>
<a name="boost_asio.r