Documentation
    Preparing search index...

    Function lock

    • @lock() decorator implementation Will make all simultaneous similar method calls locked to be resolved with the first obtained values. Similarity is identified by a bypassed method argument values.

      Parameters

      • enabledOrOptions: boolean | LockOptions = true

        whether to enable locks or not

      Returns (
          target: any,
          methodName: string | symbol,
          descriptor: TypedPropertyDescriptor<(...args: any[]) => any>,
      ) => void