You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I make request to new Gitlab().Users.showCurrentUser() to get current user.
I have cancel button in my UI. Is it possible to use native const controller = new AbortController() to abort the request to the server?
I think it would be useful for all the methods in the libarry.
Checklist
I have checked that this is not a duplicate issue.
I have read the documentation.
The text was updated successfully, but these errors were encountered:
That should be doable! Right now it uses AbortController under the hood to handle the queryTimeouts. I could expose it to do both query timeouts and external abort signals
jdalrymple
changed the title
Is it possible to use AbortController to cancel request to Gitlab?
Support using AbortController to cancel request to Gitlab?
Mar 25, 2024
Follow up, would you need this on a pure request basis, or on a library config basis. Im guessing the former, but hoping the later because its easier haha
Description
I make request to
new Gitlab().Users.showCurrentUser()
to get current user.I have cancel button in my UI. Is it possible to use native
const controller = new AbortController()
to abort the request to the server?I think it would be useful for all the methods in the libarry.
Checklist
The text was updated successfully, but these errors were encountered: