How can I cancel Geocoder.GetPositionsForAddressAsync() if it doesn't take a CancellationToken?

TimFTimF ✭✭USMember ✭✭

I find that the Geocoder calls can take a long time occasionally, so if the user leaves the page that is doing the geocoding before the geocoding is complete, I want to cancel the geocoding.

I know that you can send a CancellationToken to a Task to cancel it, but how would I cancel a call like this one, which doesn't take a token?

Best Answers

Answers

Sign In or Register to comment.