metarhia / metautil

Metarhia utilities 🧰
https://metarhia.com
MIT License
100 stars 24 forks source link

Change Semaphore contract #215

Closed tshemsedinov closed 9 months ago

tshemsedinov commented 9 months ago

Now:

const CONCURRENCY = 3;
const QUEUE_SIZE = 4;
const TIMEOUT = 1500;
const semaphore = new Semaphore(CONCURRENCY, QUEUE_SIZE, TIMEOUT);

After change:

const options = { concurrency: 3, size: 4, timeout: 1500 };
const semaphore = new Semaphore(options);
timursevimli commented 9 months ago

https://github.com/metarhia/metautil/pull/217