title: Is it possible to cancel a C# Task without a CancellationToken?
body: <p>I'm need to cancel an API call that returns a Task, but it doesn't take a CancellationToken as a parameter, and I can't add one.</p>
  
  <p>How can I cancel that Task?</p>
  
  <p>In this particular case, I'm using Xamarin.Forms with the Geocoder object. </p>
  
  <pre><code> IEnumerable&lt;Position&gt; positions = await geo.GetPositionsForAddressAsync(address); 
  </code></pre>
  
  <p>That call can sometimes take a very long time. For some of my use cases, the user can just navigate to another screen, and that result of that task is no longer needed.</p>
  
  <p>I also worry about my app going to sleep and not having this long running task stopped, or of the task completing and having need of code which is no longer valid.</p>