Hierarchy

  • Mutex

Constructors

Properties

Methods

Constructors

Properties

_locked: boolean = false
_queue: ((relaseFunc: ReleaseFunc) => void)[] = []

Methods

  • Type Parameters

    • T

    Parameters

    • worker: (() => Promise<T>)
        • (): Promise<T>
        • Returns Promise<T>

    Returns Promise<T>

Generated using TypeDoc