twitter-lite icon indicating copy to clipboard operation
twitter-lite copied to clipboard

Timeouts?

Open GeoffreyPlitt opened this issue 4 years ago • 2 comments

Is there a way to set timeouts on API calls?

GeoffreyPlitt avatar Jun 20 '20 18:06 GeoffreyPlitt

Any news on this? Looking at this it's possible to cancel the requests after a period of time, all that would be required is exposing the signal property for calls to Fetch... Alternatively, to make it foolproof you could actually just add an additional fetchOptions param to each endpoint, spreading it to Fetch, which allows the user to add any arbitrary parameters they wish to pass on to the underlying Fetch library.

alphashuro avatar Oct 15 '20 11:10 alphashuro

... this library was built because the previous twitter libraries are not maintained, yet it is falling into the same trap, the last update was months ago, and there doesn't seem to be a response to pull requests. This is most unfortunate...

alphashuro avatar Oct 20 '20 19:10 alphashuro