@types/async-lock

  • Version 1.1.5
  • Published
  • 5.42 kB
  • No dependencies
  • MIT license

Install

npm i @types/async-lock
yarn add @types/async-lock
pnpm add @types/async-lock

Overview

TypeScript definitions for async-lock

Index

Classes

class AsyncLock

class AsyncLock {}

    constructor

    constructor(options?: AsyncLockOptions);

      method acquire

      acquire: {
      <T>(
      key: string | string[],
      fn:
      | (() => T | PromiseLike<T>)
      | ((done: AsyncLockDoneCallback<T>) => any),
      opts?: AsyncLockOptions
      ): Promise<T>;
      <T>(
      key: string | string[],
      fn: (done: AsyncLockDoneCallback<T>) => any,
      cb: AsyncLockDoneCallback<T>,
      opts?: AsyncLockOptions
      ): void;
      };

        method isBusy

        isBusy: (key?: string) => boolean;

          Package Files (1)

          Dependencies (0)

          No dependencies.

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (0)

          No peer dependencies.

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/async-lock.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/async-lock)
          • HTML
            <a href="https://www.jsdocs.io/package/@types/async-lock"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>