/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Environmental, Millis, Semaphore } from "#general";
const CONCURRENT_QUEUED_INTERACTIONS = 4;
const INTERACTION_QUEUE_DELAY = Millis(100);
class InteractionQueue extends Semaphore {
  constructor() {
    super("interaction", CONCURRENT_QUEUED_INTERACTIONS, INTERACTION_QUEUE_DELAY);
  }
  static [Environmental.create](env) {
    const instance = new InteractionQueue();
    env.set(InteractionQueue, instance);
    return instance;
  }
}
export {
  InteractionQueue
};
//# sourceMappingURL=InteractionQueue.js.map
