Ciorent
    Preparing search index...

    Function init

    • Create a semaphore that allows n accesses

      Parameters

      • n: number

      Returns [
          head: QueueNode<() => void>,
          tail: QueueNode<() => void>,
          callback: PromiseFn<void>,
          remain: number,
      ]