title: OkHttpClient cannot cancel Call by tag
body: <p>I recently upgraded to <a href="http://square.github.io/okhttp/" rel="noreferrer">OkHttp3</a>, and noticed that you could no longer cancel a Call by tag directly from the Client. This has to be handled by the application now.</p>
  
  <p>Stated in the <a href="https://github.com/square/okhttp/blob/master/CHANGELOG.md#version-300-rc1" rel="noreferrer">CHANGELOG</a> here:</p>
  
  <blockquote>
    <p><strong>Canceling batches of calls is now the application's responsibility.</strong>
    The API to cancel calls by tag has been removed and replaced with a
    more general mechanism. The dispatcher now exposes all in-flight calls
    via its runningCalls() and queuedCalls() methods. You can write code
    that selects calls by tag, host, or whatever, and invokes
    Call.cancel() on the ones that are no longer necessary.</p>
  </blockquote>
  
  <p>I'm self-answering this post with my simple utility method to cancel a running or queued Call by tag.</p>