semaphore = new Internal\SemaphoreStorage($locks); } /** * {@inheritdoc} */ public function acquire() : Promise { return $this->semaphore->acquire(); } }