diff --git a/src/archive.ts b/src/archive.ts index 07c15b8..62e1f4e 100644 --- a/src/archive.ts +++ b/src/archive.ts @@ -861,11 +861,12 @@ export abstract class Archive { } /** - * Syncronously cleanup temporary resources. - * Can be called on shutdown/abort/signals to free resources. + * Syncronously cleanup temporary resources on shutdown. + * Can be called on shutdown/abort to free resources. + * Should not be called at any other time. * Not applicable to most archive formats. */ - public cleanup() { + public shutdown() { // Do nothing. } diff --git a/src/archive/hdi.ts b/src/archive/hdi.ts index f5d5a3e..558f02c 100644 --- a/src/archive/hdi.ts +++ b/src/archive/hdi.ts @@ -218,7 +218,7 @@ export class ArchiveHdi extends Archive { * * @inheritdoc */ - public cleanup() { + public shutdown() { const active = this._active; for (const a of active) { a.signal.abort = true;