twitter-lite
twitter-lite copied to clipboard
Timeouts?
Is there a way to set timeouts on API calls?
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.
... 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...