opencage-api-client icon indicating copy to clipboard operation
opencage-api-client copied to clipboard

Implement AbortController/AbortSignal pattern

Open xivk opened this issue 5 months ago • 1 comments

I was wondering if it would be useful to do a pull request implementing a version of the geocode call accepting an AbortSignal?

We use it to cancel requests that have not completed yet, for example when the user does a new search before the previous result is available. This improves performance and stops useless requests from being sent and then ignored.

xivk avatar Jan 31 '24 09:01 xivk