-
-
Notifications
You must be signed in to change notification settings - Fork 643
Add configurable timeoutMs option to uploadContent #5032
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
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, few improvements over the documentation
/** | ||
* Optional. Timeout in milliseconds before the upload is aborted. | ||
* Defaults to 30000 (30 seconds) if not specified. | ||
*/ | ||
timeoutMs?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* Optional. Timeout in milliseconds before the upload is aborted. | |
* Defaults to 30000 (30 seconds) if not specified. | |
*/ | |
timeoutMs?: number; | |
/** | |
* Timeout in milliseconds before the upload is aborted. | |
* @default 30000 (30 seconds) | |
*/ | |
timeoutMs?: number; |
|
||
// set an initial timeout of 30s; we'll advance it each time we get a progress notification | ||
let timeoutTimer = callbacks.setTimeout(timeoutFn, 30000); | ||
// set an initial timeout (default to 30s); extendable via opts.timeoutMs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// set an initial timeout (default to 30s); extendable via opts.timeoutMs | |
// set an initial timeout (default to 30s); extendable via opts.timeoutMs | |
// we'll advance it each time we get a progress notification |
You've checked the box to say you've signed off your changes and written tests, but I don't see either of these things. |
Checklist
public
/exported
symbols have accurate TSDoc documentation.