Merge pull request #12182 from tamuratak/fix_destroy

Fix the type of PDFDocumentLoadingTask.destroy.
This commit is contained in:
Tim van der Meij 2020-08-07 23:51:41 +02:00 committed by GitHub
commit fea40442f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,7 +450,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
* {@link UNSUPPORTED_FEATURES} argument.
* @property {Promise<PDFDocumentProxy>} promise - Promise for document loading
* task completion.
* @property {Promise<void>} destroy - Abort all network requests and destroy
* @property {function} destroy - Abort all network requests and destroy
* the worker. Returns a promise that is resolved when destruction is
* completed.
*/