Skip to content

Commit

Permalink
Merge pull request #27 from evgarik/main
Browse files Browse the repository at this point in the history
Add description concurrency options
  • Loading branch information
martinheidegger authored Oct 14, 2024
2 parents 09a3718 + ff2cc81 commit a52be1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const mapSlicer = new MapSlicer({
colors: 128, // (optional) See http://aheckmann.github.io/gm/docs.html#colors
gm: require('gm'), // (optional) Alternative way to specify the GraphicsMagic library
signal: new (require('abort-controller'))().signal // (optional) Signal to abort the map slicing process
concurrency:1 // (default: Infinity) Maximum parallel tasks to be run at the same time (warning: processes can consume a lot of memory!)
})

mapSlicer.on('start', (files, options) => console.info(`Starting to process ${files} files.`))
Expand Down

0 comments on commit a52be1f

Please sign in to comment.