-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support using AbortController to cancel request to Gitlab? #3561
Comments
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 it would be great 👍 |
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 |
@jdalrymple Not sure how it can be implemented on library level, I think it is needed on request level. |
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: