Skip to content

Commit

Permalink
Merge pull request #37 from vis-prime/async-generator-abort-fix
Browse files Browse the repository at this point in the history
generateAsync : return after abort signal
  • Loading branch information
gkjohnson authored Apr 19, 2024
2 parents 40b0e92 + b01e314 commit e96486f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ProjectionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export class ProjectionGenerator {
if ( signal && signal.aborted ) {

reject( new Error( 'ProjectionGenerator: Process aborted via AbortSignal.' ) );
return;

}

Expand Down
1 change: 1 addition & 0 deletions src/SilhouetteGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class SilhouetteGenerator {
if ( signal && signal.aborted ) {

reject( new Error( 'SilhouetteGenerator: Process aborted via AbortSignal.' ) );
return;

}

Expand Down

0 comments on commit e96486f

Please sign in to comment.