Skip to content
Discussion options

You must be logged in to vote

You have to call await zip.terminateWorkers() or reduce the termination delay of web workers (5s by default) by calling zip.configure({ terminateWorkerTimeout: delay }).

  • await terminateWorkers()
import { BlobWriter, TextReader, ZipWriter, terminateWorkers } from "jsr:@zip-js/zip-js";

try {
  // ...
} finally {
  await terminateWorkers();
}
  • configure({ terminateWorkerTimeout: delay })
import { BlobWriter, TextReader, ZipWriter, configure } from "jsr:@zip-js/zip-js";

configure({ terminateWorkerTimeout: 0 }); // no delay
// ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sant123
Comment options

Answer selected by gildas-lormeau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #611 on October 17, 2025 08:36.