micro-semaphore
What is this
A barebones implementation of a semaphore
API/Types
export default function createSemaphor(capacity?: number): {
then: <R>(func?: () => R) => Promise<R>;
};
A barebones implementation of a semaphore
export default function createSemaphor(capacity?: number): {
then: <R>(func?: () => R) => Promise<R>;
};
npm i micro-semaphore
3
1.1.0
MIT
4.69 kB
7