/micro-semaphore

Primary LanguageJavaScriptMIT LicenseMIT

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