micro-semaphore
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

micro-semaphore

npm version Coverage Status Build Status Bundle Phobia

What is this

A barebones implementation of a semaphore

API/Types

export default function createSemaphor(capacity?: number): {
  then: <R>(func?: () => R) => Promise<R>;
};

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i micro-semaphore

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

4.69 kB

Total Files

7

Last publish

Collaborators

  • akmjenkins