ok
Direktori : /home2/selectio/public_html/fms-worksuite/vendor/amphp/sync/src/ |
Current File : /home2/selectio/public_html/fms-worksuite/vendor/amphp/sync/src/PrefixedKeyedSemaphore.php |
<?php namespace Amp\Sync; use Amp\Promise; final class PrefixedKeyedSemaphore implements KeyedSemaphore { /** @var KeyedSemaphore */ private $semaphore; /** @var string */ private $prefix; public function __construct(KeyedSemaphore $semaphore, string $prefix) { $this->semaphore = $semaphore; $this->prefix = $prefix; } public function acquire(string $key): Promise { return $this->semaphore->acquire($this->prefix . $key); } }