Skip to content

Commit

Permalink
Better name
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Oct 3, 2023
1 parent 34cc531 commit ebb58f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand Down
2 changes: 1 addition & 1 deletion src/archive/hdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebb58f4

Please sign in to comment.